This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes difference between Home & Component business methods? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "difference between Home & Component business methods? " Watch "difference between Home & Component business methods? " New topic
Author

difference between Home & Component business methods?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
what is the difference between Home & Component business methods?.
can we use ejb-ql in HOME business methods?
How EJBHOME business methods differ from home FIND methods?
does bean provider has to write the logic for ejbHome method in bean class?

Yamini.
Paulus Maessen
Greenhorn

Joined: Sep 29, 2004
Posts: 12
Home methods are used to implement business logic that is not related to a specific entity bean. You can't use EJB-QL for Home methods. You could implement a ejbSelect method on your bean though and call this method from within a Home method.

An ejbSelect method is not required to return references to entities, it may also return the values of a specific (CMP) field for entities satisfying certain criteria.

A Find method is used to obtain (a collection of) *references* to specific entities satisfying certain criteria, which you provide by means of EJB-QL.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: difference between Home & Component business methods?
 
Similar Threads
must not declare remote exception.
Home Business methods vs Component Interface Business methods
Return Type in Home methods
ejbobject/bean instance
Home and Remote interface