• Post Reply Bookmark Topic Watch Topic
  • New Topic

Commmunication  RSS feed

 
Mary Cole
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,

Is there a way to communicate between 2 ear files other than Web service calls?
Bothe the Ear exists in the same App server in a clustered environment

ZThx in advance
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mary,
Remote EJB calls are a good way to go.
 
Mary Cole
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is I have 2 seperate application and its in 2 different EAR

How do I handle the security and session stuff
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On an architecture point of view, 2 ear files should not communicate with each others. EARs are supposed to be self contained applications.

There's an excellent article from Kyle Brown here on that subject

Btw, it also depends on the kind of communication you need.
Sometimes, data sharing may be enough, so DB or JMS Queues can do the job
[ February 17, 2005: Message edited by: JeanLouis Marechaux ]
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mary,
JeanLouis brings up a good point about data sharing. In particular the solutions mentioned allow for asynchronous data sharing.

No solution is going to let you share a session across EARs. You need to pass the relevant data as parameters. With remote EJB calls, you can still use the same security scheme though. Your role gets passed along.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!