This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Message Driven Bean

 
Om Sivanesan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the system crashes, what happens to the contents of the queue the Message Driven Bean is listening to? I am using JBoss.
 
Sergiu Truta
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The contents of the queues will not be lost. This is the beauty of messaging and that's why it's being used on a such large scale. I've even seen posts on this forum where people said the only reason they like EJBs is MDBs.
The next time you restart the JBoss server your Message Driven Beans will consume these messages.
I am using JBoss 3.0 and inside the /default folder you can see a a /db/jbossmq/file/ folder and inside this folder you can see the folders for each queue (A,B,C,D,DLQ). If you browse into these folders you will see some files - these are the messages. In conclusion they are persisted on the disk until consumed.
Hope this helps.
 
Om Sivanesan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic