• 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

when to use rmi-iiop versus idl

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Need help understanding why I would use rmi-iiop in an ejb-to-corba solution but in a pojo-to-corba solution I would use idl...

Is it as simple as the fact that an ejb container implements rmi and does idl generation for you? If so, how does it know what ORB type to implement?

I am confused...

I have looked in the CORBA spec, on the java tutorials for both idl and rmi and read cade's book on the subject...no love [banghead]
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"boarderx" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

The EJB container generates stubs using RMI-IIOP - this means that the developer writing the code writes regular RMI interfaces (or EJB interfaces in this case), but when stubs are generated, the implementation of the stubs "talk" using IIOP - the same protocol that CORBA uses. I'm not completely sure that there's a "real" CORBA ORB running the RMI-IIOP stubs - the Java RMI system could be enough of an "ORB" for this - or maybe the application server comes with a "real" ORB - in this case it would then know the specific ORB it was going to use.

As far as when to use RMI, when to use IDL, and when to use RMI-IIOP - there's a section on that in the RMI over IIOP Documentation provided by Sun.

The reason that you have to use RMI-IIOP in EJB is simple - it's a required part of the EJB spec.

Thanks! and welcome to the JavaRanch!
[ August 09, 2005: Message edited by: Nathan Pruett ]
 
jason white
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Nathan!
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is another piece of advice. If you already have IDL files for an existing CORBA application, using Java-IDL is a good idea since it generates the appropriate Java interfaces for the IDL. If you want to, you can implement the interfaces using RMI-IIOP or EJB depending on the needs of your application.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic