• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing local EB references

 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 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...
 
Sai Prasad
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic