Hello all, sorry for my english, I'm french !!
I've a comprehension problem !
I had a problem to find an EJB from a web application. To find it I made :
Context ctx = new InitialContext(); EjbExemple home = (EjbExempleHome)PortableRemoteObject.narrow( ctx.lookup(?ejbname?), EjbExempleHome.class ); ejb = home.create();
properties = new Properties(); properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); properties.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); properties.put(Context.PROVIDER_URL, "localhost:1099");
Context ctx = new InitialContext(properties);
Context ic = new InitialContext(); ds = (DataSource) ic.lookup(?connectionname?);