JBoss Community

Re: Make a call to an EJB3 this on a machine with weblogic through JNDI

created by Javier Godoy in JNDI and Naming - View the full discussion

The solution is the next:

 

Properties properties = new Properties();
            properties.put( javax.naming.Context.PROVIDER_URL, "T3://IP:PORT/" );
            properties.put( javax.naming.Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
       
            context = new InitialContext( properties );
            Object initialReference = context.lookup(key_jndi);
            objValue = (Object)javax.rmi.PortableRemoteObject.narrow(initialReference, Object.class );
            return objValue;

 

Thanks for all.

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community