Solved

EAR to EAR communication

Posted on 2010-09-21
7
1,378 Views
Last Modified: 2013-12-10
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
Comment
Question by:MatrixStar
  • 3
  • 2
  • 2
7 Comments
 
LVL 10

Accepted Solution

by:
Hegemon earned 125 total points
ID: 33725935
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
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 375 total points
ID: 33725944
0
 
LVL 10

Expert Comment

by:Hegemon
ID: 33725962
The question says there are no EJBs in the ears..
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 375 total points
ID: 33726287
expose those methods through EJBs
0
 

Author Comment

by:MatrixStar
ID: 33727089
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
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 375 total points
ID: 33728203
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
 

Author Comment

by:MatrixStar
ID: 33729204
Yes, You're right. I'm analyzing which approach would be suitable for me requirement. Thank you!!
0

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
wordmultiple challenge 12 142
groovy example issue 10 105
How to increase Spring boot/Tomcat max file upload size 2 157
iterator/ListIterator approach 17 39
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question