posted 20 years ago
Create InitialContext with url of that server.
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
props.put(Context.PROVIDER_URL,"t3://<hostname>:7001");
//props.put(Context.PROVIDER_URL,"http://<hostname>:7001");
Context ctx = new InitialContext(props);
MyEjbHome home = (MyEjbHome)ctx.lookup("ejb/myEjbHome");
home.create().....
.............