Get your CodeRanch badge!*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 39547
    
  27
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 - updated with new look and Ping home screen widget
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: 13869
    
  10

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 7 API documentation
Scala Notes - My blog about Scala
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
 
Similar Threads
Multiple Tomcat Instances on the same box
Setting multiple instances of Tomcat
Common Libraries for two tomcat instance
Configure Multiple Tomcat Instances
Servlet instances