This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Message driven bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Message driven bean" Watch "Message driven bean" New topic
Author

Message driven bean

madhu bharathula
Greenhorn

Joined: Oct 08, 2001
Posts: 15
Hi, I am using websphere 6.0 and created message driven beans to handle the messages from MQ. When onMessage() is triggered, I am doing some DB update and am wondering how to handle when the DB is down. The message gets consumed but it missed DB update. I am using bean managed persistence. Can someone help me with how to handle this situation ?

Thanks
Madhu
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

Look at "Transacted JMS sessions". What this means is that if your DB update fails, then the transaction is rolled back and the message is "re-delivered".


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Message driven bean
 
Similar Threads
B&S: I have some question about EOFException
Message driven bean
Stateless session bean with CMT, sending JMS message on commit
passed part II/III with 93
JMS subscription problem