Thank you very much Sahoo and Marina.
I think now I understand better.
May be, I found a solution using Remote interface, instead of Local.
In my SimplePOJO helper class (that is not managed), lookup works with
remote interface.
i.e:
try{
// the remote inteface class name
name = INewsEntityFacadeRemote.class.getName().toString();
obj = c.lookup( name );
System.out.println("*** OK: " + name);
INewsEntityFacadeRemote remote =
(INewsEntityFacadeRemote)obj;
List list = remote.findAll();
System.out.println("LIST: " + list.toString());
} catch (NamingException ex){
System.out.println("*** FAILED: " + name);
}
So, my unmanaged helper class acts as a remote client (because it's a remote
client, isn't it?).
Thank you very much,
Angelo.
--
View this message in context: http://www.nabble.com/EJB3-NameNotFoundException-with-simple-local-sample-tf4486501.html#a12811259
Sent from the java.net - glassfish users mailing list archive at Nabble.com.