tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joeleclems <>
Subject Re: Activemq embedded + createSession : unable to make it work!
Date Mon, 13 Oct 2014 12:42:14 GMT
joeleclems wrote
> Now, i need to Manage transaction correctly, and i don't think my method
> is a good one because : 
>  - What about transaction timeout? I start transaction before calling
> "receive" (wait for a message), if no message arrive and transaction
> timeout occured : how to manage this case?

I solved my problem using this method signature "receive(int timeout);" for
message consumer.

I didn't try CMT ("auto transaction management" with runtimeException making
a rollback). Perhaps it would be better, but i don't have time to try it.

Thanks for your help


View this message in context:
Sent from the TomEE Users mailing list archive at

View raw message