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

Karsten Ohme widerstand at t-online.de
Thu Mar 27 20:36:07 EDT 2008


Karsten Ohme schrieb:
> 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(...);

I'm not patient enough. So I answer myself.

> 
> 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?

JBoss must be started with run.sh/bat -b <ip> 0.0.0.0 to open it to all 
ips including localhost.

Firewall must be opened on ports:

1099
1098
4444
3873 (?) for socket connections

> 
> Is there somewhere a documentation how to access JNDI resources from 
> another system?
> 
> Regards,
> Karsten
> _______________________________________________
> jboss-user mailing list
> jboss-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-user
> 
> 




More information about the jboss-user mailing list