File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes home business methods? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "home business methods?" Watch "home business methods?" New topic
Author

home business methods?

Simon Ingram
Ranch Hand

Joined: Nov 30, 2003
Posts: 173
Hi folks,

A home business method is defined as a method that returns something other than a component interface reference, that is, data from the entity rather than a reference to the entity itself (page 278 HFEJB).

On page 325 we are told there are three ways to get EJBObject references: 1. a finder method on the home,
2. a create method on the home,
3. a home business method "that returns a reference to the beans component interface."

Surely this last case is a finder method, not a home business method? Or am I missing something? Please understand that I am not trying to split hairs or make a pedentic or trivial point. I got a question wrong in a Mock exam because I misunderstood this issue.

When the book talks about receiving an EJBObject reference as a parameter in a method call, am I right in thinking that this method uses a finder method to get the reference and then simply returns it, or is there more to it?

best regards
Simon
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Simon Ingram:

Surely this last case is a finder method, not a home business method? Or am I missing something?

When the book talks about receiving an EJBObject reference as a parameter in a method call, am I right in thinking that this method uses a finder method to get the reference and then simply returns it, or is there more to it?

The last case is not a finder method. Finder method is at option-1. The last case is just a home business method that returns a reference to the bean's component interface. A home business method can return anything, which is compliant to RMI-IIOP...

On page 278, the book just explains that home business mthods can return something other than EJB Object references... it doesn't mean that it cannot return EJB Object reference... So rather than using finder methods and create methods to get a reference to an EJB Object, we can use home business method to get one...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Simon Ingram
Ranch Hand

Joined: Nov 30, 2003
Posts: 173
Thanks, Ko Ko. I figured this was the case, but there is nothing like confirmation!

regards
Simon
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: home business methods?