• Post Reply Bookmark Topic Watch Topic
  • New Topic

Ear files communication

 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
Someone just introduced the doubt into my mind (not sure this is a correct expression in english .... but anyway)
Can a class from a J2EE application (EAR1) call methods from a class in another J2EE application (EAR2) ?
Same question with 2 war applications WAR1 and WAR2
[ January 23, 2002: Message edited by: Bill Bailey ]
 
le taylom
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is of course "yes".
But the complexity of the answer is dependent on if the EAR files are on the same server (i.e. the same JVM).
T
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by le taylom:
The answer is of course "yes".
But the complexity of the answer is dependent on if the EAR files are on the same server (i.e. the same JVM).
T


Well, I've never done such a "communication" by myself, so the answer you give is a little bit fuzzy.
Could you clarify these points .
1) To be able to resolve a reference to class2 (EAR2) from class1 (EAR1), I need to have all the EAR2's classes in a jar file, and this jar in the EAR1's classpath.
Does it make sense ?
2) In a load balanced environment, you can't forecast which JVM will load the classes.
So the classes can't be in different heaps.
How can you solve this problem.

If someone know valuable documents about inter ear communication, please share.
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi .
I really need some explanation here.
If class1 from EAR1 want to call class2 from EAR2, how can he resolve the reference to the class ?
Moreover, I suspect (but not sure) some side effects could occur with cross-EAR communication, depending of the way the classes are loaded and "visible" by others (class loaders)
Does anyone of you has already implemented cross-EAR or cross-war communication ?
Can you explain to me how it has to works and wich are the dangers to be aware of
[ January 25, 2002: Message edited by: Bill Bailey ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!