JBoss Community

Re: PortableRemoteObject.narrow() returns null

created by Michael Musgrove in JNDI and Naming - View the full discussion

Brian Lara wrote:

 

This will not help as I have to use IIOP for distributed transactions and not JRMP.

My EJB client is in separate EAR and separate server from one running EJB and there will be distributed transaction.

Of course you are correct, i gave you the settings for a local transaction. How about:

 

properties.put(Context.PROVIDER_URL, "corbaloc:marka:3528/NameService

properties.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.iiop.naming:org.jboss.naming.client:org.jnp.interfaces");

properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");

properties.put(Context.OBJECT_FACTORIES, "org.jboss.tm.iiop.client.IIOPClientUserTransactionObjectFactory");

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community