• 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
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

what does this mean?pg:153 HFE

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
eat bricks! HA! And here's another one! And a tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic