aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "role of ejbSelect methods" Watch "role of ejbSelect methods" New topic
Author

role of ejbSelect methods

vishwak rajgopalan
Greenhorn

Joined: Nov 19, 2003
Posts: 8
Hi,
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
Thanks,
Vishwak
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: http://aspose.com/file-tools
 
subject: role of ejbSelect methods