• Post Reply Bookmark Topic Watch Topic
  • New Topic

which to use? EJB finder or EJB selector method?

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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!