Lookup a JBoss Remote Ejb

Properties environment = new Properties();
    environment.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
    environment.put(Context.URL_PKG_PREFIXES, "org.jboss.namingrg.jnp.interfaces");
    environment.put(Context.PROVIDER_URL, "jnp://remoteServerName:1099");
    try{
         InitialContext contesto=new InitialContext(environment);
         ejbTest=(ITestRemote)contesto.lookup("RemoteEJBName/remote");
     }
    catch(NamingException e){
...
}

Dependency Injection on ejbclient

Only one sentence:
"DI can only be used by classes which are managed by containers: other EJB and servlet"!!!