Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Several Tomcat instances on one machine??

 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Saloon Keeper
Posts: 24595
168
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic