|
From: <ant...@yo...> - 2014-02-02 00:57:13
|
Hi everyone,
I try to access to a Remote EJB from an instance of glassfish 3.
Signserver is running on another server on glassfish 2.
I can not access to the remote ejb. The jndi name is not recognized.
Here is my code :
Properties props = new Properties();
props.setProperty("org.omg.CORBA.ORBInitialHost", "signserverpki");
props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
InitialContext ic = null;
try {
ic = new InitialContext(props);
} catch (NamingException ex) {
java.util.logging.Logger.getLogger(SignatureWS.class.getName()).log(Level.SEVERE,
null, ex);
}
IRemote worker = null;
try {
worker = (IRemote)
ic.lookup("org.signserver.ejb.interfaces.IWorkerSession$IRemote");
} catch (NamingException ex) {
java.util.logging.Logger.getLogger(SignatureWS.class.getName()).log(Level.SEVERE,
null, ex);
}
The exception thrown is :
javax.naming.NamingException: Lookup failed for
'org.signserver.ejb.interfaces.IWorkerSession$IRemote' in
SerialContext[myEnv={org.omg.CORBA.ORBInitialPort=3700,
java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory,
org.omg.CORBA.ORBInitialHost=signserverpki,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl,
java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception
is javax.naming.NameNotFoundException:
org.signserver.ejb.interfaces.IWorkerSession$IRemote not found]
I am working with signserver 3.2.3
Thanks a lot for your help.
Antoine
|