Title: Message
hi,
 
i use the jndi-browser that comes with sun's jndi-examples once in a while
to check if my context contains what i expect to. on my last project with
orion (but i did not use struts) i also set
 
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
java.naming.provider.url=ormi://localhost/appname
java.naming.security.principal=user here
java.naming.security.credentials=password here
 
even though i call this from inside my jsps and it should possibly be not necessary - but it works.
 
hope that helps.
 
jan

--
Jan Heise / Tel: +49-170-4803237 / E-Mail: [EMAIL PROTECTED]

-----Ursprüngliche Nachricht-----
Von: joi [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 4. Juli 2001 18:20
An: [EMAIL PROTECTED]
Betreff: Lookup ejb's in action classes

I have a problem performin lookup on my ejb's in struts action classes. I always get NameNotFoundException. I'm pretty sure that my ejb-jar.xml and web.xml are correct. Is this a common  problem accessing the Context through the struts action classes?
I'm using orion 1.5.2 app. server.
 
Code from my action class..
..
Context ctx = new InitialContext();
Object homeObject = ctx.lookup("java:comp/env/ejbUserManagement"); //throws NameNotFoundException here.
home = (UserManagementHome)PortableRemoteObject.narrow(homeObject, UserManagementHome.class);
..
As I said before I am pretty sure that my ejb-jar.xml and web.xml are correct so what could be causing this? I've tried almost everything I can think of..
Any ideas..
 

Reply via email to