File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes entity bean client view question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "entity bean client view question" Watch "entity bean client view question" New topic

entity bean client view question

Prashant Neginahal
Ranch Hand

Joined: Sep 14, 2002
Posts: 77
Hi All,
In EJB spec, it is given as below at page no 119.

A client can get a reference to an existing entity object�s remote interface in any of the following ways:

1) Receive the reference as a parameter in a method call (input parameter or result).
2) Find the entity object using a finder method defined in the entity bean�s remote home interface.
3) Obtain the reference from the entity object�s handle. (see Section 9.11)

Can somebody explain first one? I assume client can receive reference as ONLY RETURN parameter in method call. What is input parameter mentioned in the bracket.


Thanks, <br />Prashant<br />SCJP, SCBCD
Keerthi P
Ranch Hand

Joined: Aug 19, 2003
Posts: 203
Assume you have two clients C1 and C2 accessing an entity bean E1. C1 looksup E1 and passes the reference to the beans remote object to a C2's method as a parameter. This is just one case substantiating the point 1. Its a simple thing, but sounds so difficult in the spec - An entity bean's remote object's reference can be received as a parameter of a method.

Cheers.<br />Keerthi<br />(SCJP, SCWCD, SCBCD)
Prashant Neginahal
Ranch Hand

Joined: Sep 14, 2002
Posts: 77
Thanx Keerthi. Indeed it is simple but sounds difficult to understand.

I agree. Here's the link:
subject: entity bean client view question
It's not a secret anymore!