JBoss Community

Re: What is the JNDI parameter in ejb3 deployment?

created by Tomaz Cerar in EJB3 - View the full discussion

JNDI name is any one of those that you got in log file.

 

so if you do:

 

Context ctx = new InitialContext();
IEJBHelloWorldPort hello = (IEJBHelloWorldPort) ctx.lookup("java:module/EJBHelloWorldBean");

 

it should work, and also you are trying to get remote bean, but you do not deploy it... that is also a reason why it does not work.

 

 

cheers,

tomaz

Reply to this message by going to Community

Start a new discussion in EJB3 at Community