• 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

communicate between 2 war files

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi friends,
I need to communicate(vice-versa) between two web-applications,(WAR)files, Is there any method to communicate between them.

Thanks
Ganesh
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where this two WAR were located ?? In the same server or in an intranet ?
Please explain about the current system/software scenario to help you further...
 
Ganesh Kannusamy
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Balaji,
Both the war files are located in the same server(Tomcat5 Or Oc4j 9g). I need to send/receive some parameters between the two applications.
First War file - application is developed in MVC-2 framework,
Second War file - application is developed in Struts1.2 framework.

Thanks in advance
Ganesh.K
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use any communication mechanism you can think of:
  • a database
  • a shared file
  • TCP or UDP
  • JMS
  • Email
  • a web service
  • HTTP
  • RMI
  • on Tomcat, you can even set the web apps so that you can get a RequestDispatcher in one web app for a resource in the other one
  • ...

  •  
    Ganesh Kannusamy
    Ranch Hand
    Posts: 35
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi Ulf,
    Thank you for your reply, indeed a lot of communication mechanism is available.
    Will JMS be suited for communication between Struts based application(since iam a newbie in JMS).

    Thanks in advance,
    Ganesh.K
     
    Ulf Dittmer
    Rancher
    Posts: 43081
    77
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Which method is suitable depends largely on what your requirements are. Do you need one-way or two-way, synchronous or asynchronous, how fast does it need to be, do you have some of these technologies already available, ... Without knowing these it's impossible to even make an educated guess.
     
    Ganesh Kannusamy
    Ranch Hand
    Posts: 35
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    My requirements are,
    It is a two-way, asynchronous communication.
    It should be very fast.
    The technologies i already have are RMI, SOAP, HTTP.

    From my requirements can you figure out which suits me best.
    Iam ready to implement JMS or TCP/UDP or any other best suited mechanism, but not Database


    Thanks,
    Ganesh.K
     
    Ulf Dittmer
    Rancher
    Posts: 43081
    77
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    For two-way asynchronous I'd recommend JMS. If speed if important, I'd prefer synchronous mechanisms, though. Since both sides are web apps, HTTP suggests itself for that - just send the request, and ignore the response.
     
    Bartender
    Posts: 2968
    6
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I've never tried this before but I've wondered if it would be possible to "communicate" between two co-located web applications by using ServletContext.getContext(String uriPath) and RequestDispatchers (or even ServletContext listeners).
    Java Forums - ServletContext's getContext() method
    [ March 06, 2006: Message edited by: Peer Reynders ]
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic