• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Tomcat worker mapping a particular webapp

Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
I have a win server which hosts an ASP (old-style) application. Now I have to deploy a Java webapp under Tomcat.
I yet setup Tomcat, IIS and the isapi_redirect.dll to pass requests through IIS to Tomcat. No problem in that.
The server is not a powerfull machine, so I was trying to reduce memory usage.
As now my Tomcat respond with the deployed application i.e.:

If I had to deploy another Java webapp I should create a new Tomcat instance, which consumes memory.
To avoid that I was wondering if there was a way to have a worker map a particular webapp under Tomcat, something that forwads a request like www.mywebapp2.com --> localhost:8080/mywebapp2
I hope I could explain clearly (as English is not my native language)

Posts: 20833
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot speak for IIS-to-Tomcat connections, but when using Apache as the frontend webserver, what you do is indicate a remapping connection. For example, you might redirect URLs from "www.host-uno.com to an internal Tomcat app at localhost:8090/webapp1. Then you might set up another virtual host that routes URLs addressing www.host-due.com to localhost:8090/webapp2.

I think you may be confused because your original setup had just one Tomcat webapp, located at the root context. But that's one reason why I rarely place my Tomcat webapps there - there can be only one root per Tomcat host, but Tomcat can host many webapps, each under a different URL context name.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!