Hi all,
I have a problem with container managed transactions in a stateless session bean sending a jms message.
It seems i can't include my JMS session in the transaction.
Here's the code:
Problem is that no message ends up on the queue when the enqueueOrder method completes, and i would expect the container to commit the transaction. Method completes ok without throwing any exceptions.
However if I change to:
the message is placed on the queue when the send(message) call completes. But that means the jms session is not part of the
EJB transaction.
My app-server is JBoss5.1, and there are no consumers on the queue.
I'm probably missing something blindingly obvious, but i just can't spot it. Any help appreciated.