• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Orion server and the magic of RMI?  RSS feed

Posts: 22944
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Orion's docs says that it will make the stubs for me on the fly.
So if I have a stand alone application accessing an EJB in an Orion server... the stub object will be sent over the network? (I seem to remember something about RMI doing this)
Or, is it that the only client that can talk to an Orion EJB something within the Orion J2EE server?
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As long as your app can get a JNDI context it can do a look up and get a reference to the remote interface of the bean. This interface is a subinterface of EJBObject which is a subinterface of the java.rmi.Remote so you are correct - RMI is involved.
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also confused.
I installed Orion 1.5.2 and I created a stand alone app. Now, it's working, but it does not mean that I understand what's going on...
The EJB books and the J2EE Tutorial say that at deployment time stubs and skeletons are created and are needed by a stand alone app to connect to the EJB server.
Well Orion does not seem to create any stubs/skeletons.
I created the three EJB classes Bean/HomeRemote/Remote, META-INF/ejb-jar.xml, which I put into myapp-ejb.jar.
Then I put this jar inside the myapp.ear with META-INF/application.xml.
Then I deployed it in Orion.
For the client, I have a jndi.properties file, 1 Client class, the original HomeRemote/Remote interfaces, and META-INF/application-client.xml.
Note: I had to put the ejb.jar (8Kb) and orion.jar (2Mb) in my client Classpath.
That's it, and everything works well.
1) So where are the stubs and skeletons???
2) While I can include the ejb.jar (8Kb) in my client lib directory, I can't deploy my app with the original Orion jar (2Mb).
Any thought?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!