Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Communication between two web applications running on different tomcat

Status
Not open for further replies.

JavaJSPServlet

Programmer
Mar 7, 2007
1
US
Hi All,

We are developing a Java,JSP,Servlet based application. That will be partly on two Tomacats. When we click on one button in a JSP page of the application residing on one Tomcat the request will be tranferred to another part of the application on another Tomcat. We will do serching from some databases and need to save search results. When we go to first part of the applcation the saved search results should be visible from there. We also want o manage the state of both parts of the application. Please let me know how this can be achieved

Thanks for your response in advance

Regards
Nitin
 
Use one Tomcat :)

Anyway, once the page is delivered to html or whatever, you can use the submit property to send it to the other Tomcat instance.

Cheers,
Dian
 
You could install some sort of messaging system (like JMS or JAX-WS) to pass information around, but easiest is to just use a database that both applications have access to.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top