|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MDBs and setRollbackOnly |
« View previous topic :: View next topic » |
Author |
Message
|
dtauzell |
Posted: Wed Sep 04, 2002 10:17 am Post subject: MDBs and setRollbackOnly |
|
|
Apprentice
Joined: 23 May 2002 Posts: 37
|
Hi all,
I think that this has been answered, but I'm not totally clear from the other postings.
Here is my situation:
I have an MDB running in Weblogic which is listening on an MQSeries queue. If a runtime exception is thrown or if I call setRollbakOnly() then I want the message to be re-queued.
My questions are:
1. Can this be done using client mode? Or will I have to use binding mode?
2. All I have to do in the ejb-jar.xml descriptor is set the MDB to use Container managed transactions, right?
Thanks,
Dave Tauzell |
|
Back to top |
|
 |
kolban |
Posted: Wed Sep 04, 2002 11:40 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
This is NOT an authorative answer
o Is/Does IBM actually support JMS under WebLogic? I know they do under WebSphere ....
o I believe MQ JMS can coordinate transactions with database activity if you use server bindings but not if you use client bindings.
o You can rollback message gets and puts in either client or bindings mode as long as you don't expect coordinated updates including database. |
|
Back to top |
|
 |
ram_2000 |
Posted: Thu Sep 12, 2002 8:48 pm Post subject: |
|
|
 Novice
Joined: 29 Mar 2002 Posts: 12 Location: Vancouver, Canada
|
as far as i know Weblogic does not support transactions on foreign JMS providers (in this case MQ Series)....doesn't matter whether you use binding mode or client mode...
But...even if it did, if the message gets rolled back, it will again trigger the MDB and could cause a looping situation (unless your application is smart enough to check backout counts and do something about it...).
To handle this situation, we just catch all Throwable in our MDB's onMessage() method and send the message to an error queue...and can be easily copied to the original queue if required... |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|