Problemas con el contexto en ejb de entidad.
Publicado por jmuoz35 (1 intervención) el 18/05/2007 08:47:44
Tengo 2 ejb de entidad, la fabrica de jndi es "jdbc/default" y el jndi de uno es "ejb/pruebas/ProvinciaLocalHome"
Llamo de la siguiente forma al home:
Context jndiContext = new InitialContext();
Object objref = jndiContext.lookup("ejb/pruebas/ProvinciaLocalHome");
ProvinciaLocalHome clientefac = (ProvinciaLocalHome)PortableRemoteObject.narrow(objref, ProvinciaLocalHome.class);
Me da el siguiente error:
javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: ejb/pruebas/ProvinciaLocalHome:
First component in name ejb/pruebas/ProvinciaLocalHome not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
Alguien me puede decir como llamarlo correctamente.
Estoy utilizando websphere 5.1.2
Gracias.
Llamo de la siguiente forma al home:
Context jndiContext = new InitialContext();
Object objref = jndiContext.lookup("ejb/pruebas/ProvinciaLocalHome");
ProvinciaLocalHome clientefac = (ProvinciaLocalHome)PortableRemoteObject.narrow(objref, ProvinciaLocalHome.class);
Me da el siguiente error:
javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: ejb/pruebas/ProvinciaLocalHome:
First component in name ejb/pruebas/ProvinciaLocalHome not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
Alguien me puede decir como llamarlo correctamente.
Estoy utilizando websphere 5.1.2
Gracias.
Valora esta pregunta


0