Pessoal,
Estou acessando os ejbs remotamente da seguinte forma:
java -Dorg.omg.CORBA.ORBInitialHost:myserver -classpath “$CLASSPATH” classeCliente
Funciona normalmente.
Teria outra forma de estar acessando os ejbs em outras máquinas sem usar esse argumento ?
Tentei:
Hashtable env = new Hashtable();
env.put( Context.INITIAL_CONTEXT_FACTORY, “com.sun.jndi.cosnaming.CNCtxFactory” );
env.put( Context.PROVIDER_URL, “iiop://myserver:1050” )
try {
Context jndi = new InitialContext( env );
…
}
catch( Exception e ) {…}
mas não funcionou.
Alguém teria uma sugestão ?
obrigado.
mindu