File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat worker mapping a particular webapp

 
Stefano Cazzola
Greenhorn
Posts: 6
  • 0
  • 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)

Thanks,
Stefano
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17616
38
Android Eclipse IDE Linux
  • 0
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic