Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Orion and InitialContext  RSS feed

 
Paul Medford
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!