users@glassfish.java.net

SOLUTION

From: angelogeminiani <angelo.geminiani_at_gmail.com>
Date: Thu, 20 Sep 2007 23:22:43 -0700 (PDT)

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.