tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joeleclems <joelecl...@free.fr>
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.

@Romain
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

Clément



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Activemq-embedded-createSession-unable-to-make-it-work-tp4672172p4672245.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message