basically JndiProvider should be used with @EJB(mappedName = "jndi:ext://<jndiProviderName>/<jndiBeanName>")
you can just create properties and pass them to the initialcontext you use. Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-27 17:21 GMT+01:00 asingh <abhishek.sing...@yahoo.com>: > Hi, > Is their an example out there which demonstrates connecting to the EJB > deployed on Websphere from TomEE instance? > > I did try to do so by using tomee.xml file but did not help: > <tomee> > <JndiProvider id="<jndiName>" type="javax.naming.InitialContext"> > java.naming.provider.url = > corbaname:iiop:<hostName>:<port>/NameServiceServerRoot > java.naming.factory.initial = > org.apache.openejb.client.RemoteInitialContextFactory > </JndiProvider> > </tomee> > > On run time I see this in my Initial Context: > {java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, > java.naming.factory.url.pkgs=org.apache.naming:org.apache.openejb.core.ivm.naming} > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Connecting-to-EJB-Deployed-on-Websphere-from-TomEE-server-tp4668017.html > Sent from the OpenEJB Dev mailing list archive at Nabble.com.