• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Portable remote object

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
Why do we need to use Portable RemoteObject ?
I read that the ejb supports RMI over IIOP and RMI over IIOP is CORBA + JAVA standard. Why is EJB using IIOP ?
Thanks in advance
Hari
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We need PortableRemoteObject because some languages do not allow casting and to support this IIOP only allows stubs to implement a single interface. Since Context.lookup() returns an Object, the stub will only implement methods from Object.
PortableRemoteObject gives us a way to cast a general Object to a more specific type, in a protocol independent manner. Thus it will work with RMI-IIOP, T3, RMI, etc...
J2EE uses RMI-IIOP to allow interoperability with existing Corba systems. IIOP is also a more widely recognized protocol than RMI, hence it is more likely to be allowed thru firewalls. It also allows more interoperability between J2EE vendors. Before RMI-IIOP most vendors had proprietary RMI protocols optimized for their server.
 
I'm not sure if I approve of this interruption. But this tiny ad checks out:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic