Hi,

you have to initialize your InitialContext with the server connection, so that 
it can access the remote JNDI:

Properties props = new Properties();
  | props.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | props.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");
  | props.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
  |         
  | InitialContext initialContext = new InitialContext(props);
  | 
  | Object ref = context.lookup("HelloBean/remote");

Hope this helps

Wolfgang

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210349#4210349

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210349
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to