Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

entity bean client view question

 
Prashant Neginahal
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Keerthi P
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Prashant Neginahal
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Keerthi. Indeed it is simple but sounds difficult to understand.

-Prashant
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic