IntelliJ Java IDE
The moose likes EJB and Other Java EE Technologies and the fly likes Orion and InitialContext Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and Other Java EE Technologies
Reply Bookmark "Orion and InitialContext" Watch "Orion and InitialContext" New topic
Author

Orion and InitialContext

Paul Medford
Ranch Hand

Joined: Aug 28, 2001
Posts: 33
Hi all:
I am currently using Orion 1.5.2 to learn more about EJBs.
It takes about 5 seconds to get the initial context using:
Context context = new InitialContext();
In my jndi.properties file I have the following as per the Orion doc.
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
java.naming.security.principal=admin
java.naming.security.credentials=123
java.naming.provider.url=ormi://localhost/titan
Any idea why it is so slow? Is JNDI usually slow?
THanks,
Francois
Paul Medford
Ranch Hand

Joined: Aug 28, 2001
Posts: 33
I got the answer.
It seems that it is the ormi protocol that's slow. But once the connection is open then it's pretty fast.
Moreover I learnt that in order to deploy a standalone client with Orion one must include the ejb.jar, jndi.jar, the orion.jar (2Mb) and the client jar (of course).
Orion.jar is the server. So, in other words you've got to include the server jar with your client app... That doesn't make sense...
Francois
 
 
subject: Orion and InitialContext
 
Threads others viewed
Problem with orion-Urgent Please Can any one help us
ORION server
Is Orion dead? Is JBoss king? Resin?
PortableRemoteObject.narrow() throws ClassCastException
JNDI name lookup problem in session bean
MyEclipse, The Clear Choice