Hi TomEE does not use any weblogic related configuration file like weblogic-ejb-jar.xml. If you want to use EJB Bean Remote access, then you have to configure TomEE accordingly. In below, I assume that you use the latest TomEE 7.0.1 release from here, http://tomee.apache.org/downloads.html
Steps to use EJB Beans accessible from Remote Clients: Open conf/system.properties of TomEE and set tomee.remote.support = true You have to configure tomee.serialization.class.blacklist and tomee.serialization.class.whitelist properties both in conf/system.properties and also in your client accessing your EJBs remotely. For example if you have a test.IHelloWorld remote interface then add white list and black list as follows: tomee.serialization.class.blacklist = - tomee.serialization.class.whitelist =test.,java.,org.apache.openejb.core.ivm.IntraVmArtifact,org.apache.openejb.BeanContext$BusinessRemoteHome (We added test. as package which contains your EJB beans. Others are necessary as default.) See this page for more information, http://tomee.apache.org/ejbd-transport.html Add javaee-api and openejb-client jars to your client class path. These libraries are necessary to access your EJBs remotely. Now use the Remote initial context factory to get initial context and lookup Remote Beans. Here is an example: Properties p = new Properties(); p.put("java.naming.factory.initial", "org.apache.openejb.client.RemoteInitialContextFactory"); p.put("java.naming.provider.url", "http://localhost:8080/tomee/ejb"); System.setProperty("tomee.serialization.class.whitelist", "test.,java.,org.apache.openejb.BeanContext$BusinessRemoteHome,org.apache.openejb.core.ivm.IntraVmArtifact"); System.setProperty("tomee.serialization.class.blacklist", "-"); InitialContext ctx = new InitialContext(p); IHelloWorld instance = (IHelloWorld) ctx.lookup("java:global/ejb-testing/HelloWorld!test.IHelloWorld"); System.out.println(instance.helloWorld() ); @Remote public interface IHelloworld{ ……. } @Stateless public HelloWorld implements IHelloWorld{ ……... } I hope this helps. Regards. Uday Gire Senior Support Engineer, ManageCat p. +1 (909) - 366 – 9337 a. 340 S Lemon Ave #7996 Walnut, CA 91789 w. http://managecat.com <http://managecat.com/> e [email protected] <mailto:[email protected]> <http://twitter.com/managecat> <https://www.linkedin.com/company/managecat> > On 17 Sep 2016, at 00:38, jbhaskaran <[email protected]> wrote: > > Hello All, > I am in the process of moving away from WebLogic to TomEE. I was able to > call deploy the EJBs in TomEE but can only use them remotely if I include > weblogic-ejb-jar.xml in my jar file. The only element in > weblogic-ejb-jar.xml that is not in the ejb-jar.xml is the > '<enable-call-by-reference>true</enable-call-by-reference>' element. So here > are my questions: > 1. What roles does weblogic-ejb-jar.xml play in OpenEJB? > 2. What can I do to remove weblogic-ejb-jar.xml from the deployment? > > > Thanks in advance for your help. > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/Moving-Away-from-WebLogic-Confusion-tp4680142.html > Sent from the TomEE Users mailing list archive at Nabble.com.
