[jboss-user] [EJB/JBoss] - Re: Remote not bound
jaikiran
do-not-reply at jboss.com
Mon Feb 5 08:18:48 EST 2007
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
More information about the jboss-user
mailing list