It's not a secret anymore!
The moose likes EJB and other Java EE Technologies and the fly likes role of ejbSelect methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "role of ejbSelect methods" Watch "role of ejbSelect methods" New topic

role of ejbSelect methods

vishwak rajgopalan

Joined: Nov 19, 2003
Posts: 8
I am a newcomer to EJB. I have to use CMR on one of my projects.I have a question regarding the use of ejbSelect methods in a CMR. I have two entity beans StudentEJB and CourseEJB which have a M:N relationship with each other with the studentId variable of StudentEJB being related to the courseNo variable of CourseEJB. Can ejbSelect methods be used to determine in such a case the courses that a student is enrolled in instead of using session tracking to track the student's id and then retrieve the courses based on studentId.
Could some please help me in this regard
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
I didnt get the session tracking part that you referred to.
As long as data is persisted to the repository, you can get all courses for a given student.
If you have an access to the StudentEJb, you dont need a ejbSelect to get all the courses.
I agree. Here's the link:
subject: role of ejbSelect methods
jQuery in Action, 3rd edition