You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Rood, Simon" <si...@etrade.com> on 2003/06/11 13:09:33 UTC
Messenger simple Transactions
Hi,
Hoping that someone can help me with the following:
I have been using Messenger MDO's successfully against both OpenJMS and
MQSeries under Solaris.
However on both implementations I cannot get the simple transaction
mechanism ( rollback()/commit() ) to work.
In the Messenger.xml I am setting the attribute of the jndi
transacted="true".
I then run a test where several messages are passed to a Queue ( supported
by the relevant QueueConnectionFactory ). In my MDO I have
messenger.commit(), then a forced exception which leads to a
messenger.rollback().
I was expecting to see some of the messages committed ( and gone from the Q
) then some others, ie at rollback, still present, or even redelivered in a
loop. However, all messages seem to be processed once. Then on restarting
Tomcat ( my container for the MDO's ) the messages are ALL redelivered
again. I then have to explicitly purge them from either Q mechanism.
I couldn't get CLIENT_ACKNOWLEDGE to work either, but that's not so
important.
Thanks, in advance, for any help.
Regards,
Simon Rood.
simon.rood@etrade.com
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org