The RemoteTestServer class in itests manages to connect :-) using
public void init(Properties props) {
properties = props;
props.put("test.server.class",
"org.openejb.test.RemoteTestServer");
props.put("java.naming.factory.initial",
"org.openejb.client.RemoteInitialContextFactory");
props.put("java.naming.provider.url", "127.0.0.1:4201");
props.put("java.naming.security.principal", "testuser");
props.put("java.naming.security.credentials", "testpassword");
}
I'm not quite sure where the testuser and testpassword comes from,
but I'm pretty sure you need these properties as well.
thanks
david jencks
On May 10, 2006, at 1:39 PM, Zakharov, Vasily M wrote:
Hi, all,
I'm having a problem with OpenEJB in Geronimo, and it looks like the
Geronimo guys can't answer.
How should I configure JNDI for an application (running on a JVM other
than Geronimo), for its InitialContext to be able to locate EJBs
deployed in Geronimo by their <ejb-name> names?
For now I use the following:
-
Djava.naming.factory.initial=org.openejb.client.RemoteInitialContextFa
c
tory
-Djava.naming.provider.url=geronimo.host:4201
and when I call "new InitialContext()", at that line I get the
following
exception:
javax.naming.AuthenticationException: Cannot read the response from
the
server (OEJP/2.0) : null;
nested exception is: java.io.EOFException
at
org.openejb.client.JNDIContext.authenticate(JNDIContext.java:196)
at
org.openejb.client.JNDIContext.getInitialContext(JNDIContext.java:181)
at javax.naming.spi.NamingManager.getInitialContext(Unknown
Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at <my application>
Could anybody please tell me what I may be doing wrong?
This question is important for SPECjAppServer2004 enabling on
Geronimo.
Thank you very much!
Vasily Zakharov
Intel Middleware Products Division