Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Application Exceptions in Bean  RSS feed

 
kumar senthil
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is that a best practise to throw Application Exceptions in bean?if not how can we handle exceptions?
Thanks
SK
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kumar,

That depends on you. EJB 3 allows you to use "application" and "run-time" exceptions as you wish.

If you are looking for Java exception handling best practices in general, here is a decent reference: http://www.onjava.com/pub/a/onjava/2003/11/19/exceptions.html.

Regards,
Reza
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!