Are you sure your server is accessible from your client machine. Don't you have a 
firewall between both ?

I always use myself this code snippet and it works fine:

  | Properties prop = new Properties();
  | prop.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | prop.put(Context.PROVIDER_URL, "jnp://<ServerName Here>:1099");
  | prop.put(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");
  | Context context = new InitialContext(prop);
  |                     
  | Object ref = context.lookup(<bean JNDI name Here>);
  | myBeanhome = (BeanHome) PortableRemoteObject.narrow(ref, BeanHome.class);
  | 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836722



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to