Try this:

Context context = new InitialContext();
  | context.lookup("TestEAR/UserManagerBean/remote");

instead of :

anonymous wrote : 
  | Properties props = new Properties();
  | props.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | props.setProperty(Context.URL_PKG_PREFIXES, 
"org.jboss.naming:org.jnp.interfaces");
  | props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
  | context = new InitialContext(props);
  | contect.lookup("TestEAR/UserManagerBean/remote");



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

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

Reply via email to