This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS and MessageDriven Bean

 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Rancher

In setting a MessageDriveBean asynchronous insert a record in a relational database. What to do in case of communication problems?
My doubt is ... the setting that makes the MDB run several times until the relational database back is done in a proprietary extension on each application server?
Has anyone had experience in context?

Regards.
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fernando,

When there will be communication problems with DB the exception will be thrown from your MDB. JMS provider will attemp to redeliver such message. It can be potentially dangerous (poison message) unless you specify the number of redelivery attempts. After specified number of attempts your message will be send to the special place and you can monitor it.
 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lucas

This configuration is done in a proprietary extension on each application server?
Regards
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly!
The example for JBoss:
http://middlewaremagic.com/jboss/?p=2402

Important piece of configuration
 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was exactly what I needed to know Lucas!
Best Regards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic