Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

return type of ejbSelect method  RSS feed

 
Ramakrishnan Ponmudi
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
select methods can return remote/local component interface, primitive, collection/set of either one. if i return a single Remote/Local component interface from a select method, the syntax that i used is correct or not?

public abstract Order ejbSelectOrderByValue(String value) throws FinderException;
public abstract OrderLocal ejbSelectOrderByValue(String value) throws FinderException;
 
Muthaiah Ramanathan
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes - correct.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!