[jboss-user] [EJB3] - What is the JNDI parameter in ejb3 deployment?

Joseph Hwang do-not-reply at jboss.com
Thu Dec 15 05:47:38 EST 2011


Joseph Hwang [http://community.jboss.org/people/aupres] created the discussion

"What is the JNDI parameter in ejb3 deployment?"

To view the discussion, visit: http://community.jboss.org/message/641732#641732

--------------------------------------------------------------
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
[http://community.jboss.org/message/641732#641732]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111215/dd46c820/attachment.html 


More information about the jboss-user mailing list