[jboss-user] [Beginner's Corner] - Re: Problems with JBoss 7 and remote-interface lookup with context
Gary Quinn
do-not-reply at jboss.com
Thu Sep 29 08:49:57 EDT 2011
Gary Quinn [http://community.jboss.org/people/JavaPenguin] created the discussion
"Re: Problems with JBoss 7 and remote-interface lookup with context"
To view the discussion, visit: http://community.jboss.org/message/629273#629273
--------------------------------------------------------------
I still can't get mine to work.
This is from my log file:
13:08:53,436 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named DepartmentServiceImpl in deployment unit subdeployment "server.jar" of deployment "quinn_ear.ear" are as follows:
java:global/quinn_ear/server/DepartmentServiceImpl!za.co.quinn.service.DepartmentService
java:app/server/DepartmentServiceImpl!za.co.quinn.service.DepartmentService
java:module/DepartmentServiceImpl!za.co.quinn.service.DepartmentService
java:global/quinn_ear/server/DepartmentServiceImpl
java:app/server/DepartmentServiceImpl
java:module/DepartmentServiceImpl
Here is my code:
Hashtable props = new Hashtable();
props.put("java.naming.factory.initial", "org.jboss.as.naming.InitialContextFactory");
props.put("java.naming.provider.url", "jnp://localhost:1099");
InitialContext initialContext = new InitialContext(props);
DepartmentService bean = (DepartmentService) initialContext.lookup("java:global/quinn_ear/server/DepartmentServiceImpl!za.co.quinn.service.DepartmentService");
The exception is:
javax.naming.NameNotFoundException: Name 'global' not found in context ''
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/629273#629273]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110929/76a80864/attachment-0001.html
More information about the jboss-user
mailing list