commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rood, Simon" <simon.r...@etrade.com>
Subject Messenger simple Transactions
Date Wed, 11 Jun 2003 11:09:33 GMT
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


Mime
View raw message