I am planning a large site with EJBs running on two Orion servers and web
applications running on a couple of JRun servers that uses the Orion EJBs.
1. I put orion.jar the WEB-INF/lib/. The web application gets
ClassNotFoundException:com.evermind.server.rmi.RMIInitialContextFactory
getting an InitialContext for the orion server. See code below.
2. I put orion.jar in jrun jrun/lib/ext/. Now jrun crashes when started.
3. I remove classes from orion.jar in packages javax.servlet and javax.jms.
Now JRun starts and InitialContext seems to work without any exceptions.
The Orion team should release a separate jar for those clients and web
applications that only uses EJBs on a remote server, to avoid problems in
the actual web application server.
The code:
Properties props = new Properties();
props.put("java.naming.factory.initial",
"com.evermind.server.rmi.RMIInitialContextFactory");
props.put("java.naming.provider.url", "ormi://vses-c65/ejbappl");
props.put("java.naming.security.principal", "system");
props.put("java.naming.security.credentials", "manager");
Context context = new InitialContext(props);
Dag Rende