aspose file tools*
The moose likes Servlets and the fly likes Several Tomcat instances on one machine?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Several Tomcat instances on one machine??" Watch "Several Tomcat instances on one machine??" New topic
Author

Several Tomcat instances on one machine??

Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
Hi,
I am developing a chat application, and i have deployed it on the server and its working fine. Its hosted on Tomcat 3.2.2 server. But there are some other applications ( other than my chat application) hosted on the same Tomcat server. So if some problem comes in one of these application, the Tomcat server gets shutdown , and this in turn affects my chat application.
I would like to know if we can have several instances of Tomcat server running, each hosting one application, and each running at a different port. If this is possible, do i need to have 3 tomcat servers running in the same machine(each with a different port number), or just one will be fine. Do any of u people have a solution for this. Im in a real fix. Please helpme out.
Kindest regards
Saj
jayram
Ranch Hand

Joined: Oct 30, 2000
Posts: 94
I think tomcat4.0 provides that functinality. I guess the setup process for this is mentioned somewhere in Tomcat documentation ...dont have the link right now
I dont think tomcat 3.2.2 supports this ...
Cheers
Jayram
------------------
What if this is as good as it gets ?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16246
    
  21

Contrariwise. I think it's actually specifically mentioned in the docs. In Tomcat 4, I'm sure of it - they have 2 separate HOME environment variables - one for the Catalina system as a whole and one for the server instance.
The key thing is that each server must have its own unique TCP/IP ports. But that's what you wanted anyway. You address that in the server.xml file.

Customer surveys are for companies who didn't pay proper attention to begin with.
ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
i dont know about tomcat 4.0 , but to run two instaces of tomcat what i did was , I created two tomcat directories ,for example : jakarta-tomcat and other is jakarta-tomcatone , then set two tomcat homw is autoexec and set conf dir files of each tomcat dir accordingly , start each instace on different port and you will have two instaces of tomcat running on different ports.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Several Tomcat instances on one machine??