Hello,
My question is about what code to write to allow two remote Tomcat
webapps to communicate with one another through the Internet.
Let me explain more precisely what I would like to do.
(I'm just simplifying a bit the real situation).
- I have a Tomcat webapp running on a server in England.
- I have another Tomcat webapp running on a server in France.
- I have a JSP inside the England webapp.
- This JSP contains a form with two fields "First name" and "Last name".
- I would like to send these information to the France webapp.
- After the England form has been submitted, I can collect the
information "First name" and "Last name" in a servlet.
Can you tell me what I shall do then to send these information to the
France webapp?
Is it something like a "response.sendRedirect(..."?
How does it have to be written?
- Meantime, the France webapp needs to be able to wait for these
information and, when they arrive, to get them and do something with
them. For example store the "First name" and "Last name" in a database, etc.
What kind of a code has to be written in the France webapp?
Is it a servlet with a "doGet()" retrieving the information "First name"
and "Last name"?
- Moreover, when the France webapp has finished it's job, it needs to
tell the England webapp that it has finished, send it a file and some
information.
So the communication has to be bidirectional.
Can you please give me some indications on how to start dealing with
this? Or maybe a tutorial or an example?
Thank you and best regards.
--
Léa Massiot
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org