Solved

EAR to EAR communication

Posted on 2010-09-21
7
1,376 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

DevOps Toolchain Recommendations

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

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
changePi Challenge 15 130
listing all functions in JavaScript 19 201
servlet requestdispatcher include and forward differences 1 30
servlet example 17 32
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
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.

773 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