| Author |
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, Prashant
|
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. -Prashant
|
 |
 |
|
|
subject: entity bean client view question
|
|
|