• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Orion server and the magic of RMI?

 
Trailboss
Posts: 23377
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
Thanks,
Francois
 
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic