Re: Migrating EJB from Jboss to TomEE

2016-09-07 Thread Romain Manni-Bucau
Hi would need to check what is app2 and also if the communication is @Remote or local (this last one means you need to deploy both together) but if an exploded ejbmodule you can merge it with WEB-INF/classes of app1 (physically or virtually) Romain Manni-Bucau @rmannibucau

Re: Migrating EJB from Jboss to TomEE

2016-09-07 Thread luca-vercelli
I have just tried physically merging app2 inside app1/WEB-INF/classes, but I still get the same error :( Inside app2 there are several classes, this is the one which is supposed to be looked-up: @Local public interface LogCaricamentoServiceLocal with an implementation: @Stateless public class

Re: Migrating EJB from Jboss to TomEE

2016-09-07 Thread Romain Manni-Bucau
did you check the Jndi( lines in the startup logs? jboss specific names (in particular old versions) are different than tomee and EE ones Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog

Re: Migrating EJB from Jboss to TomEE

2016-09-07 Thread luca-vercelli
In startup logs I see this: INFO - Jndi(name=LogCaricamentoServiceLocal) --> Ejb(deployment-id=LogCaricamentoService) INFO - Jndi(name=global/app1/LogCaricamentoService!it.package.massiveloading.service.LogCaricamentoServiceLocal) --> Ejb(deployment-id=LogCaricamentoService) (this in the scenario

Re: Migrating EJB from Jboss to TomEE

2016-09-07 Thread Romain Manni-Bucau
is MassiveLoadingService in the logs? Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog | Github | LinkedIn

Re: Migrating EJB from Jboss to TomEE

2016-09-08 Thread luca-vercelli
No, I cannot see It. There is MassiveLoadingServiceStarter: Auto-deploying ejb MassiveLoadingServiceStarter: EjbDeployment(deployment-id=MassiveLoadingServiceStarter) ... Auto-creating a container for bean MassiveLoadingServiceStarter: Container(type=MESSAGE, id=Default MDB Container) ... INFO - J

Re: Migrating EJB from Jboss to TomEE

2016-09-08 Thread Romain Manni-Bucau
then the class is not seen/scanned, probably due to a wrongly packaging Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog | Github | LinkedIn

Re: Migrating EJB from Jboss to TomEE

2016-09-08 Thread luca-vercelli
Thank you, I shall see ASAP. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Migrating-EJB-from-Jboss-to-TomEE-tp4680044p4680061.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Migrating EJB from Jboss to TomEE

2016-09-27 Thread luca-vercelli
After 2 weeks, I can finally work on this again. Apparently, the Jndi names are completely different between JBoss and TomEE. For example, where in JBoss I had: "LogCaricamentoService/local" and "queue/massiveLoading/load" and in TomEE I had to write: "java:openejb/Deployment/LogCaricamentoServi

Re: Migrating EJB from Jboss to TomEE

2016-09-27 Thread Romain Manni-Bucau
Welcome back ;) 2016-09-27 15:59 GMT+02:00 luca-vercelli : > After 2 weeks, I can finally work on this again. > > Apparently, the Jndi names are completely different between JBoss and > TomEE. > For example, where in JBoss I had: > "LogCaricamentoService/local" > and > "queue/massiveLoading/load

RE: Migrating EJB from Jboss to TomEE

2016-09-27 Thread Jay Leggett
- From: luca-vercelli [mailto:luca.verce...@alkeinformatica.com] Sent: Tuesday, September 27, 2016 10:00 AM To: users@tomee.apache.org Subject: Re: Migrating EJB from Jboss to TomEE After 2 weeks, I can finally work on this again. Apparently, the Jndi names are completely different between JBo

RE: Migrating EJB from Jboss to TomEE

2016-09-27 Thread luca-vercelli
Thank you both. @Romain: you were right, I can access the same object using another jndi name, it is "java:global/app1/LogCaricamentoService!it.packagename.LogCaricamentoServiceLocal" @jayleg: thank you, however I prefer to understand how TomEE works, and to use its conventions. Now, I still hav

Re: Migrating EJB from Jboss to TomEE

2016-09-27 Thread Romain Manni-Bucau
@Management is a jboss import right? this doesnt mean anything outside jboss (like @Service), maybe add @Singleton Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog | Github

Re: Migrating EJB from Jboss to TomEE

2016-09-28 Thread luca-vercelli
Ok, good suggestion. I removed all jboss specific annotations. The error should bè elsewhere. Il martedì 27 settembre 2016, Romain Manni-Bucau [via TomEE & OpenEJB] < ml-node+s979440n4680207...@n4.nabble.com> ha scritto: > @Management is a jboss import right? this doesnt mean anything outside >

Re: Migrating EJB from Jboss to TomEE

2016-09-29 Thread luca-vercelli
I thought I had solved, however new problems come out. Romain, you wrote: > if an > exploded ejbmodule you can merge it with WEB-INF/classes of app1 > (physically or virtually) I packed the ejbmodule into a jar, and put it inside WEB-INF/lib. This works, however it gives some side-effects (there

Re: Migrating EJB from Jboss to TomEE

2016-09-29 Thread Romain Manni-Bucau
2016-09-29 13:09 GMT+02:00 luca-vercelli : > I thought I had solved, however new problems come out. > > Romain, you wrote: > > > if an > > exploded ejbmodule you can merge it with WEB-INF/classes of app1 > > (physically or virtually) > > I packed the ejbmodule into a jar, and put it inside WEB-IN

Re: Migrating EJB from Jboss to TomEE

2016-09-29 Thread luca-vercelli
Well, the ejb points to an "application.properties" file which is in its root folder. Actually there are several files with the same name, in other jars. I guess the ejb is taking the wrong one. In this case the solution is quite simple, I can try to rename it, and/or to move it outside the jar. Ho

Re: Migrating EJB from Jboss to TomEE

2016-09-29 Thread Romain Manni-Bucau
2016-09-29 14:41 GMT+02:00 luca-vercelli : > Well, the ejb points to an "application.properties" file which is in its > root folder. Actually there are several files with the same name, in > other jars. I guess the ejb is taking the wrong one. > In this case the solution is quite simple, I can tr