//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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to