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 Multiple Tomcat instances Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Multiple Tomcat instances" Watch "Multiple Tomcat instances" New topic
Author

Multiple Tomcat instances

raghu nagabandi
Ranch Hand

Joined: Aug 14, 2007
Posts: 35
How to create multiple instances for tomcat?

[ UD: added a meaningful subject line ]
[ August 28, 2007: Message edited by: Ulf Dittmer ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42595
    
  65
There's nothing stopping you from running multiple Tomcat instances, provided they have separate installation directories, and use different ports. What would be the advantage of this setup over having a single instance serving multiple web applications? Or to use multiple hosts within a Tomcat instance?


Ping & DNS - my free Android networking tools app
Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
Is it possible to have one instance of Tomcat with multiple ports to serve web apps?
Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
Is it possible to have one instance of Tomcat with multiple ports to serve web apps?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14338
    
  22

Manon, you should be able to configure multiple HTTP Connectors in your Tomcat server.xml file that listen on different ports. Refer to the Tomcat documentation for details on how to setup your server configuration to do this.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
Thanks. It worked.

Manon
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple Tomcat instances