[jboss-user] [JNDI and Naming] - Jboss 7 and the global JNDI

A I do-not-reply at jboss.com
Tue May 21 05:27:03 EDT 2013


A I [https://community.jboss.org/people/nullable] created the discussion

"Jboss 7 and the global JNDI"

To view the discussion, visit: https://community.jboss.org/message/818595#818595

--------------------------------------------------------------
Hello,

 I use JBoss 7.1 and did NOT understand the support of the global JNDI in "Remote application clients" of the global JNDI in JBOSS 7.1.

When I use the JNDI java:global/my-ear/my-ejb/BMPFacadeBean!my.domain.service.IBMPFacadeRemote

I get the error


testBMPProcessCommit(my.domain.itest.BMPIntegrationIT)  Time elapsed: 0.34 sec  <<< ERROR!
javax.naming.NameNotFoundException: global/my-ear/my-ejb/BMPFacadeBean!my.domain.service.IBMPFacadeRemote -- service jboss.naming.context.java.jboss.exported.global.my-ear.my-ejb."BMPFacadeBean!my.domain.service.IBMPFacadeRemote"
         at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)
         at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
         at org.jboss.naming.remote.protocol.v1.Protocol$1.handleServerMessage(Protocol.java:127)
         at org.jboss.naming.remote.protocol.v1.RemoteNamingServerV1$MessageReciever$1.run(RemoteNamingServerV1.java:73)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)




I want also to mention that JNDI ejb:my-ear/my-ejb//BMPFacadeBean!my.domain.service.IBMPFacadeRemote works just fine.


What is the current status of implmenting the global JNDI for remote clients?

I use the following Properties when obtaining the Context (without jndi.properties):

env = new Properties();

env.setProperty( "java.naming.factory.initial", "org.jboss.naming.remote.client.InitialContextFactory");
//env.setProperty( "java.naming.factory.initial", "org.jboss.as.naming.InitialContextFactory");
//env.put("jboss.naming.client.ejb.context", true);
env.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
env.setProperty( "java.naming.provider.url", "remote://localhost:4447");
env.put(Context.SECURITY_PRINCIPAL, "user");
env.put(Context.SECURITY_CREDENTIALS, "apassword");
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818595#818595]

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

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


More information about the jboss-user mailing list