• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Passing local EB references

 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In chapter 9.7.2 the EJB 2.0 spec lists where a local client may obtain a reference to an EntityBean's local interface.
- Receive the reference as a result of a method call.
- Find the entity object using a finder...
This differs from the previous chapter listing the same abilities regarding remote EntityBeans in the way that for remote, the first bullet explicitly includes both an input parameter and a return value. Then again, 9.7.2 continues by saying that the local client can pass the local EB reference as a method parameter for a local method call.
Now my question is, can local references be used as both method parameters and return values?
I guess they can but would sure like someone to confirm...
 
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. Local references of an EJB is just like any java objects residing in the same VM.
reply
    Bookmark Topic Watch Topic
  • New Topic