JBoss Community

What is the JNDI parameter in ejb3 deployment?

created by Joseph Hwang in EJB3 - View the full discussion

I made ear project which contained war and jar project. Deployment is succeeded.

Problem is JNDI in JSP client. I put some codes like below:

 

Context ctx = new InitialContext();

IEJBHelloWorldPort hello = (IEJBHelloWorldPort) ctx.lookup("EJBHelloWorldBean/remote"); //throws exception

 

But JBoss throws exception like this :

 

javax.naming.NameNotFoundException

 

Deployment messages of EJB3 jar are

 

19:36:24,319 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named EJBHelloWorldBean in deployment unit subdeployment "EJBHelloWorldBean.jar" of deployment "EJBHelloWorldEAR.ear" are as follows:

 

java:global/EJBHelloWorldEAR/EJBHelloWorldBean/EJBHelloWorldBean!com.aaa.ejb3.IEJBHelloWorldPort
java:app/EJBHelloWorldBean/EJBHelloWorldBean!com.aaa.ejb3.IEJBHelloWorldPort
java:module/EJBHelloWorldBean!com.aaa.ejb3.IEJBHelloWorldPort
java:global/EJBHelloWorldEAR/EJBHelloWorldBean/EJBHelloWorldBean
java:app/EJBHelloWorldBean/EJBHelloWorldBean
java:module/EJBHelloWorldBean

 

19:36:24,444 INFO  [org.jboss.web] (MSC service thread 1-1) registering web context: /EJBHelloWorldWeb
19:36:24,491 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "EJBHelloWorldEAR.ear"

 

Then what is the JNDI lookup parameter? Pls, inform me. Thanks in advanced.

 

Best regards.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community