| Author |
JMS and MessageDriven Bean
|
Fernando Franzini
Ranch Hand
Joined: Jan 09, 2009
Posts: 443
|
|
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.
|
Fernando Franzini - Java Blog
|
 |
Lucas Smith
Ranch Hand
Joined: Apr 20, 2009
Posts: 804
|
|
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.
|
SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
|
 |
Fernando Franzini
Ranch Hand
Joined: Jan 09, 2009
Posts: 443
|
|
Hi Lucas
This configuration is done in a proprietary extension on each application server?
Regards
|
 |
Lucas Smith
Ranch Hand
Joined: Apr 20, 2009
Posts: 804
|
|
Exactly!
The example for JBoss:
http://middlewaremagic.com/jboss/?p=2402
Important piece of configuration
|
 |
Fernando Franzini
Ranch Hand
Joined: Jan 09, 2009
Posts: 443
|
|
That was exactly what I needed to know Lucas!
Best Regards.
|
 |
 |
|
|
subject: JMS and MessageDriven Bean
|
|
|