Link to home
Start Free TrialLog in
Avatar of MatrixStar
MatrixStar

asked on

EAR to EAR communication

I have 2 EARs deployed in same JVM. I would need to invoke a method in EAR2 class from EAR1 class, what are the best ways available to achieve this?. Both the classes are neither EJBs nor servlets.
ASKER CERTIFIED SOLUTION
Avatar of Hegemon
Hegemon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The question says there are no EJBs in the ears..
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MatrixStar
MatrixStar

ASKER

Thanks for the quick advise.

If there is no other approaches available then I would need to think about exposing classes through EJB.

Hegemon: I would need to check how to specify the same class loading repository for both .ears if that approach will work out.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, You're right. I'm analyzing which approach would be suitable for me requirement. Thank you!!