• 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!