• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

Passing local EB references

Posts: 11962
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Yes. Local references of an EJB is just like any java objects residing in the same VM.
    Bookmark Topic Watch Topic
  • New Topic