• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pass parameters between 2 EARs.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic