This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41133
How about an HTTP request? It could even return a value in its response.

Ping & DNS - my free Android networking tools app
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
jQuery in Action, 2nd edition
subject: Inter war communication
Similar Threads
Socket Client returning Connection refused
how two deploy two war with same context root
how two deploy two war with same context root
how two deploy two war with same context root
How to deploy different war on different port?