• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown

which to use? EJB finder or EJB selector method?

Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
    Bookmark Topic Watch Topic
  • New Topic