• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wrapping app exceptions into EJBException

 
Koji Muramoto
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I remind reading on HF EJB that one should wrap an unrecoverable/unexpected app exceptions such as SQLexceptions into EJBExceptions, however I haven't found anything regarding this issue on EJB 3.

I have 3 major doubts about this:

1)Is this still a recommendation? (well, what does the exam expect me to answer!)
2)Are there any other scenarios that one should rethrow an app exception wrapped into an EJBException to the client?
3)Can this cause poison messages? (Ex: if the Database is down a MDB will keep throwing EJBException and the message will never leave the queue)


Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"pimptenshi", please check your private messages for an important administrative matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic