• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

entity bean client view question

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx Keerthi. Indeed it is simple but sounds difficult to understand.

-Prashant
 
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic