This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Message driven bean

 
madhu bharathula
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic