ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MDBs and setRollbackOnly

Post new topic  Reply to topic
 MDBs and setRollbackOnly « View previous topic :: View next topic » 
Author Message
dtauzell
PostPosted: Wed Sep 04, 2002 10:17 am    Post subject: MDBs and setRollbackOnly Reply with quote

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
View user's profile Send private message
kolban
PostPosted: Wed Sep 04, 2002 11:40 am    Post subject: Reply with quote

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
View user's profile Send private message
ram_2000
PostPosted: Thu Sep 12, 2002 8:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MDBs and setRollbackOnly
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.