[jboss-user] [JNDI and Naming] - Re: PortableRemoteObject.narrow() returns null

Michael Musgrove do-not-reply at jboss.com
Wed Oct 17 12:59:39 EDT 2012


Michael Musgrove [https://community.jboss.org/people/mmusgrov] created the discussion

"Re: PortableRemoteObject.narrow() returns null"

To view the discussion, visit: https://community.jboss.org/message/766443#766443

--------------------------------------------------------------
> 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
[https://community.jboss.org/message/766443#766443]

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121017/14280bcf/attachment.html 


More information about the jboss-user mailing list