GeeCON Prague 2014*
The moose likes Tomcat and the fly likes Setting multiple instances of Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Setting multiple instances of Tomcat" Watch "Setting multiple instances of Tomcat" New topic
Author

Setting multiple instances of Tomcat

Milan Sutaria
Ranch Hand

Joined: Jul 10, 2008
Posts: 122
Hi,

This one is simple. I tried searching online but not could not find an answer.

I know I can have just 1 set of binary folder and then copy a set of folders and configuration files to another location and use run 2 instances of tomcat. I dont know which folders need to be copied and where should the TOMCAT_HOME and TOMCAT_BASE point to.

Thanks for your time in advance.

(Although, I am good in Java but I am new to the web world)


SCJP 6 83%
Working on SCWCD/OCPJWCD
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

Why do you need multiple instances of Tomcat?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Milan Sutaria
Ranch Hand

Joined: Jul 10, 2008
Posts: 122
Bear Bibeault wrote:Why do you need multiple instances of Tomcat?


There can be multiple reasons. I want to run web applications on separate tomcats, so I don't have to restart all the web applications
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42022
    
  64
Are you aware that you can restart web apps independently of one another? Admittedly, for a production system I wouldn't do that; it generally causes problems.


Ping & DNS - my free Android networking tools app
Milan Sutaria
Ranch Hand

Joined: Jul 10, 2008
Posts: 122
No, I am not aware of that and would like to know pointers(if possible)
But still I am looking for answer to my question
Milan Sutaria
Ranch Hand

Joined: Jul 10, 2008
Posts: 122
Solved myself. referRunning multiple Tomcat instances on Windows (A note instead of creating the webapps folder, as suggested by the blog, copy it from original tomcat installation)
 
GeeCON Prague 2014
 
subject: Setting multiple instances of Tomcat