This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
If it doesn't work you might also try initializing your context with a properties arguments like this (for jboss, for example).
[ September 01, 2004: Message edited by: Leandro Melo ]
SCJP 1.4, SCWCD 1.4
Joined: Aug 16, 2004
hi Melo thanks for your reply. i tried all the statements that you mentioned but it didn't work.i was getting some kind of error. i am depoying the application in j2ee sdk 1.4.in the coded name of ejb ref i am using ejb/HelloWorld so i think in the lookupjava:comp/env will work.what are ur suggestions? thanks. do reply . [ September 01, 2004: Message edited by: sai Narayan ]
Joined: Mar 27, 2004
Say, i'm not an expert here, but i there seems to be a mistake in your code.
lookup method is not supposed to return a context, but a home interface reference to your bean. Try this (also try with the properties initialization parameter):
If the jndi name of your bean is HelloWorldBean.
Anyway, I think you should post the error you're getting so others can also try to help you. Is it at deploy time? runtime? [ September 01, 2004: Message edited by: Leandro Melo ]