JNDI Properties for clients
Written by Joseph Ottinger
In an application client, you need to specify the factory, security, and location settings to use EJBs. (There's more here, but I don't write non-web-based applications, so I'm not really clear on everything required to set them up.) In a web-app, you can use new InitialContext() to get the properties, because they're internal to Orion.
For external applications, however, you need these settings (from the Orion FAQ on www.orionserver.com):
java.naming.factory.initial= \
com.evermind.server.ApplicationClientInitialContextFactory
java.naming.provider.url=ormi://<hostname>/<application-name>
java.naming.security.principal=<username>
java.naming.security.credentials=<password>
Of course, don't forget to replace the values in brackets with real values.
Copyright © 2007 IronFlare AB