J
Jim Flath
I am trying to create a standalone Java application that will access
an EJB running in a WebLogic 8.1 server.
When I run the client code on the same server as the WebLogic and add
the weblogic.jar to the classpath everything works just fine.
My problem occurs when I try to run the client code on my Windows (yea
I know) machine. I am getting an ClassNotFoundException when
attempting to instantiate the InitialContext. That exception makes
sense because I don't have weblogic.jar on my Windows box.
So I guess my question would be how to configure the InitialContext on
a remote/external client with out having to bring all of the weblogic
classes along with it.
For what it's worth, here is how I am creating the InitialContext
private Context createInitialContext(){
Properties env = new Properties();
env.put( "java.naming.factory.initial",
"weblogic.jndi.WLInitialContextFactory" );
env.put( "java.naming.provider.url",
"t3://10.0.124.68:7005" );
return new InitialContext( env );
}
an EJB running in a WebLogic 8.1 server.
When I run the client code on the same server as the WebLogic and add
the weblogic.jar to the classpath everything works just fine.
My problem occurs when I try to run the client code on my Windows (yea
I know) machine. I am getting an ClassNotFoundException when
attempting to instantiate the InitialContext. That exception makes
sense because I don't have weblogic.jar on my Windows box.
So I guess my question would be how to configure the InitialContext on
a remote/external client with out having to bring all of the weblogic
classes along with it.
For what it's worth, here is how I am creating the InitialContext
private Context createInitialContext(){
Properties env = new Properties();
env.put( "java.naming.factory.initial",
"weblogic.jndi.WLInitialContextFactory" );
env.put( "java.naming.provider.url",
"t3://10.0.124.68:7005" );
return new InitialContext( env );
}