[jboss-user] [JNDI/Naming/Network] - Re: Why does jbossall-client.jar cause
leo_ni
do-not-reply at jboss.com
Fri Aug 17 18:10:08 EDT 2007
//Code:
Properties env = new Properties();
env.put(Context.PROVIDER_URL, url);
env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.security.jndi.JndiLoginInitialContextFactory");
env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
env.put(Context.SECURITY_PRINCIPAL,"u01");
env.put(Context.SECURITY_CREDENTIALS,"u01");
Context initial = new InitialContext(env);
Object objref = initial.lookup(jndiName);
MyEjbHome home = (MyEjbHome) PortableRemoteObject.narrow(objref, EjbHomeClass);
Object MyEjbRemote= home.create();
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075392#4075392
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075392
More information about the jboss-user
mailing list