File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Inter war communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Inter war communication" Watch "Inter war communication" New topic

Inter war communication

sridhar lakka
Ranch Hand

Joined: Jan 02, 2007
Posts: 109
Hi All,
Thanks in advance.
I have two different application which are kept in two different war files and deployed, now I have to pass some value to other application i.e., one war should communicate with it possible?
Please help me...
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
How about an HTTP request? It could even return a value in its response.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Side note: A war file is just a way to package an application for delivery.

What you're asking about is inter web application communication.
Anyway, this gets asked a lot here.
If you search this forum you'll find plenty of discussions on the subject.

The answer, in short is 'It depends on what you're trying to do'.

See if you can find an answer to your question by searching.
If you can't come back and describe exactly what you're trying to do.
Include details like the container you're using, whether or not the two apps are running in the same container or on different machines. Whether or not the two apps are sharing a database, etc..

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Inter war communication
jQuery in Action, 3rd edition