Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About select methods in CMP entity bean class  RSS feed

 
Steven Gao Song
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, everyone,

Is the ejbSelect method declared in the cmp entity bean class
required to define the javax.ejb.FinderException?
Even if the type of return value is a Collection?

Thank you.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
10.6.7 ejbSelect<METHOD> methods
The throws clause must define the javax.ejb.FinderException. The throws clause may define arbitrary application specific exceptions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!