I have a question relating to this... We run around 6 sites each of which has a www and a java directory. We will be moving everything to tomcat very soon. The web servers I will have seperately from the tomcat servers with the ajp (mod_jk) connector connecting the machines.
Apache has virtual hosts. And within each virtual host I will have a connection to the apropriate directory on the tomcat server where that site's classes/applications are located. What I want to be able to do though is restart one instance without dropping the classloader of another. Can I do that with one tomcat install and simply having multiple connectors in the server.xml? Or do I have to install tomcat multiple times? It is not a big deal if I have to install many times, it is not very large. Thanks for the help. Charlie > -----Original Message----- > From: Ion Larranaga [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 20, 2002 12:24 PM > To: Tomcat Users List > Subject: RE: Multiple Tomcat-servers on a single machine > > > > I think that you have two possibilities to do what you want: > > - You could set up one instance of Tomcat with X different contexts, > so that each user has his own. Servlets from different users would > have different physical directories, so each user would have a different > working directory. This way, users would access their specific servlets > with URLs: > > http://server/user1/servlet/yourServlet > http://server/user2/servlet/yourServlet > ... > > - But if you want the course to be more complete, including configuration > of Tomcat, of course you should set up different Tomcat instances for > one. These instances should listen on a different port, so they > will need > different configuration files (server.xml), updating the port each > HttpConnector listens to. This way, the URLs to access the > servlets would > be: > > http://server:8081/user1/servlet/yourServlet > http://server:8082/user2/servlet/yourServlet > ... > > Just as long as different instances do not try to listen to the same port > there should be no problem. If you will connect to Tomcat through > Apache, it > is > basically the same, but changing the port of ajp or warp connectors > (depending on > the Apache module you use) > > Hope it helps, > > Ion > > > -----Mensaje original----- > De: Anders Gunnare [mailto:[EMAIL PROTECTED]] > Enviado el: miercoles, 20 de febrero de 2002 17:49 > Para: [EMAIL PROTECTED] > Asunto: Multiple Tomcat-servers on a single machine > > > Hello World, > > How shall I do if I would like to have multiple Tomcat-servers on a > single machine? > > I have tried to read the doc, but I can't understand how I practically > shall do the work... > For example, 5 different UNIX-users shall have 5 different > Tomcat-servers, > one user=one Tomcat-server. > > The reasons is that I shall have a Servlet-course and I have one > UNIX-server where we shall do our work. > > Best regards > Anders Gunnare > Frontec > Sweden > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
