[jboss-user] Access remote bean with JNDI from remote system

Karsten Ohme widerstand at t-online.de
Thu Oct 11 14:11:41 EDT 2007


Hi,

I want to access a Bean remotely (with JNDI). So I thought I could 
access in on the client with:

Properties env = new Properties();
env.put(Context.PROVIDER_URL, "jnp://myserver:1099");
Context jndiContext = new InitialContext(env);
jndiContext.lookup(...);

If I do a port scan on "myserver" the JNDI port 1099 does not show up. I 
thought this is the default port. What do I have to do the get access 
the remote bean?

Is there somewhere a documentation how to access JNDI resources from 
another system?

Regards,
Karsten



More information about the jboss-user mailing list