Hello I think that application to application calls should be implemented with web services (there is much choice but maybe heavy to implement). When implementing such a solution, particularly if trafic goes through internet, you must check that you're using a firewall in order to avoid false requests that could from hackers.
A.T. 2014-06-14 23:56 GMT+02:00 Lmhelp1 <lmhe...@orange.fr>: > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org