Solved

EAR to EAR communication

Posted on 2010-09-21
7
1,394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 
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

Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

Question has a verified solution.

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

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
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…
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.

717 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