This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what does this mean?pg:153 HFE

 
pradeep arum
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what if tou have a local home ,but you have a remote EJB object reference ?can't you pass the remote bean's handle to the local home?
please help
thanks
Pradeep
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. The converse is not true though. You cannot give a local reference to a remote bean.
 
pradeep arum
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nathaniel,
the answer is No, please correct and reply if you get the explanation for the answer
thanks
Pradeep
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps I'm wrong. I thought you could. I'm pretty darn sure that remote beans are serializable, so rmi will simply serialize the reference and pass it along to the local home. It really should be no different from calling getHandle on the remote bean and passing that to the local home, where it gets the associated remote bean and does whatever it wants with it.
I'm at the end of my rope here though -- without any specs. So, maybe somebody else will pipe in and fill in the details.
 
Rajnish Bhasin
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nathan...
Could u pls elaborate on this.....as to what are u trying to refer by this...
It really should be no different from calling getHandle on the remote bean and passing that to the local home, where it gets the associated remote bean and does whatever it wants with it.

One gets EJBObjects from the home interface.
One thing is very clear, we dont create EJBObjects, the container does.So the container is intellegent enough to send back only EJBLocalObjects in case of a LocalHome and similarily Remote EJBObjects for a RemoteHome.
So where does the confusion arise ?
I really dont understand how has the bean Provider landed in this Picture of Sending EjbObjects to the HomeObject ?
Nathan, please let me know if i am wrong, or if i have not judged the question properly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic