> How should servlets residing at different web
> containers of systems communicate?
This depends on your requirements, however broadly speaking.
1) http if the data is a subset of a clients request/response.
2) JMS, for events type data,
3) XML, for compound data.
Actually what i need is this.
A web application is divided into to 2 modules.
Both will be delivared as .war files.
Servlets residing at 1.war (present in apache tomcat of system 1)should interact with servlets in 2.war(present in apache tomcat of system 2).
The information of server name and and port numbers will be available in a file.
If res.sendredirect() is used in servlet of 1.war, the URI in the address bar changes and it cannot be tracked.
if RequestDispatcher is used, i am not able to use the complet URI bcoz,its specific to a particular context.
I am struck at this point.