Issue with local lookups between 2 different ears deployed in same TomEE instance

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with local lookups between 2 different ears deployed in same TomEE instance

Dignesh
Hi,

I am using 7.0.2 TomEE. I have 2 ears (A.ear and B.ear) .As both apps share
the same jvm, I am doing a local look up of bean deployed in EAR B from Ear
A .I am seeing the class cast exceptions.
Remote look ups work fine. Just to avoid the RMI overhead , I dont want to
use Remote lookup. Is there any configuration setting through which we can
enable the local lookups between 2 ears deployed in same jvm /tomee
instance.

Thank you.
Dignesh



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html
Reply | Threaded
Open this post in threaded view
|

Re: Issue with local lookups between 2 different ears deployed in same TomEE instance

Romain Manni-Bucau
Hi Dignesh

Normally if you dont have a local (or local bean) interface we
automatically do a "classloader copy" which means if the same api classes
are in both ears it should work.



Le 23 avr. 2018 06:44, "Dignesh" <[hidden email]> a écrit :

Hi,

I am using 7.0.2 TomEE. I have 2 ears (A.ear and B.ear) .As both apps share
the same jvm, I am doing a local look up of bean deployed in EAR B from Ear
A .I am seeing the class cast exceptions.
Remote look ups work fine. Just to avoid the RMI overhead , I dont want to
use Remote lookup. Is there any configuration setting through which we can
enable the local lookups between 2 ears deployed in same jvm /tomee
instance.

Thank you.
Dignesh



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html
Reply | Threaded
Open this post in threaded view
|

Re: Issue with local lookups between 2 different ears deployed in same TomEE instance

Dignesh
Hi Romain,

Unfortunately , I have local interface (local bean) defined in my
application .





--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html