• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1414
  • Last Modified:

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.
0
MatrixStar
Asked:
MatrixStar
  • 3
  • 2
  • 2
4 Solutions
 
HegemonCommented:
With JBoss you would need to specify the same class loading repository for both .ears. Not sure how it is done in WebSphere but the principle should be the same - organising a common class loading space.
0
 
HegemonCommented:
The question says there are no EJBs in the ears..
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Gurvinder Pal SinghCommented:
expose those methods through EJBs
0
 
MatrixStarAuthor Commented:
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.
0
 
Gurvinder Pal SinghCommented:
All EARs have their own containers.
If you want the execution to be done is same EAR container, then why have it in a separate container itself. put those classes in the same EAR.

If you want the execution to be done in the respective EJB container, then it those methods (which needs to be executed) should be exposed publically, either through EJB or servlet
0
 
MatrixStarAuthor Commented:
Yes, You're right. I'm analyzing which approach would be suitable for me requirement. Thank you!!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now