File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes JMS and MessageDriven Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS and MessageDriven Bean" Watch "JMS and MessageDriven Bean" New topic
Author

JMS and MessageDriven Bean

Fernando Franzini
Ranch Hand

Joined: Jan 09, 2009
Posts: 484
    
    2

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
    
    1

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: 484
    
    2

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
    
    1

Exactly!
The example for JBoss:
http://middlewaremagic.com/jboss/?p=2402

Important piece of configuration
Fernando Franzini
Ranch Hand

Joined: Jan 09, 2009
Posts: 484
    
    2

That was exactly what I needed to know Lucas!
Best Regards.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS and MessageDriven Bean
 
Similar Threads
Is The MySQL a Relational Database?
Directory Service vs Relational Database
post relational database
How to manage configuration parameters
small confusion with"meaning of persistent word "