File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat worker mapping a particular webapp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat worker mapping a particular webapp" Watch "Tomcat worker mapping a particular webapp" New topic
Author

Tomcat worker mapping a particular webapp

Stefano Cazzola
Greenhorn

Joined: Apr 21, 2011
Posts: 6
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

Joined: Jun 25, 2001
Posts: 15647
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat worker mapping a particular webapp
 
Similar Threads
Deploy multiple webapps in jboss
Deploying servlets from Tomcat to full web server
Deploying my web service
How to configure Tomcat 5.5 for debug mode?
Define new tomcat webapp location?