• Post Reply Bookmark Topic Watch Topic
  • New Topic

exception inside ejb finder

 
Giselle Dazzi
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
How do I throw an exception inside an ejb finder if it returns null ?
thx in advance,
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "it returns null"? I'm assuming that you're talking about an BMP entity bean's ejbFindXXX(...) method so if the find operation logically fails, you should just throw a javax.ejb.FinderException.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!