• Post Reply Bookmark Topic Watch Topic
  • New Topic

Pass parameters between 2 EARs.

 
sunil venkata
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pass parameters between 2 EARs. If 2 EARs are deployed in Webserver application server and I want to pass parameters from one struts action in one EAR to another struts action in another EAR. Please give me a simple solution. Can we make this without using webservices?
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
This is basically the same as having two independent applications communicating with each other. There are a number of ways in which you can solve this:
1. Application A invokes some remotely accessible function in application B when there is data to send.
2. Application B polls application A for data, also by using some remotely accessible function.
3. Shared data.
This include solutions as a shared database or shared state by, for instance, using Terracotta or similar.

When designing a solution for remotely accessible functions, some alternatives are:
- Remotely accessible EJBs.
- RMI
- Web service (REST, SOAP etc etc).
- RPC technologies, such as Hessian and Burlap.

Do not hesitate to complement or provide better solutions and ideas (in contrast to those I have provided)!
Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!