[GLASSFISH-20349] Unable to create JMS transacted session in ExecutorService threads Created: 19/Apr/13 Updated: 19/Apr/13 Resolved: 19/Apr/13
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
GF 188.8.131.52, Windows, single server environment (not clustered)
There is a SLSB which makes use of ExecutorService to run an arbitrary number of threads.
In the SLBS:
Inside the Runnable's run method, we attempt to create a JMS transacted session:
The problem is when the code above is executed, a non-transacted JMS session is created and acknowledgement mode is DUPS_OK_ACKNOWLEDGE.
The SLSB which actually creates the threads by calling ExecutorService uses container manager transaction, transaction attribute is set to REQUIRED but these settings do not seem to have any effect.
Thanks for your feedback.
|Comment by novaks [ 19/Apr/13 ]|
Just a small addition, Transaction Support on the connection factory is set to "XATransaction".
|Comment by marina vatkina [ 19/Apr/13 ]|
It is not permitted to manage threads from an EJB. With GlassFish 4.0 you can use JSR 236 API to do so correctly.