This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

which to use? EJB finder or EJB selector method?  RSS feed

Pras Tiwari
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want display on one of my view page result of following sql query:-
select count(userid),userid from ordermaster group by userid;
Now I already have OrderMaster CMP EJB in my applications EJB module. Now my question is which of above (ejb-Finder or ejb-Selector) method should I use for getting above query result through EJB ? As far as I know ejb Finder methods always return Object of type Colletion or Remote interface, I guess here that we should use ejb-selector methods only?
But as client can not have acces to EJB-selector methods through interfaces, how shold we make it to access through interfaces to client? Also what should be equivalent EJB-Selector method for above SQL Query?
Please reply.
thank you in advance.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!