This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes Installing two different webapplication on two different installed tomcat directory on same machine? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Installing two different webapplication on two different installed tomcat directory on same machine?" Watch "Installing two different webapplication on two different installed tomcat directory on same machine?" New topic
Author

Installing two different webapplication on two different installed tomcat directory on same machine?

scott miles
Ranch Hand

Joined: Jun 16, 2011
Posts: 70
i already have one web application up on port 8080 on tomcat. Now i have another web application which i have got as war file. Both webapplications will be communicating with each other. i have been told by my senior to deploy this second web application on different tomcat directory on same machine. While doing this i came up with these two another options:-

1) we can deploy second webapplication on different port say 8888 on first tomcat directory itself.

2) we can deploy second webapplication on same port on first tomcat directory itself.

Option3 as suggested by my senior :- Deploy second webapplication on another tomcat directory on same machine itself.


As per my understanding there is no difference among above three options. Is that correct?


i am not getting the rationale behind deploying second webapplication on another tomcat directory which is on same machine itself ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56150
    
  13

Of course there's a huge difference between those options.

But the question comes down to: why on earth does the 2nd web app need another port or Tomcat instance? A single Tomcat instance is capable of hosting as many web applications as the system is capable of supporting.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
scott miles
Ranch Hand

Joined: Jun 16, 2011
Posts: 70
Bear Bibeault wrote:Of course there's a huge difference between those options.

But the question comes down to: why on earth does the 2nd web app need another port or Tomcat instance? A single Tomcat instance is capable of hosting as many web applications as the system is capable of supporting.


Do you mean if first web application is too heavy and single server is not able to handle /or may not provide good performation in that case second tomcat server will help in load balancing. Is it?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Installing two different webapplication on two different installed tomcat directory on same machine?
 
Similar Threads
How to check if an application is already running?
Different webapps on same instance of tomcat on different ports
Java Web Start
How to write a deployable services in Spring like EJB jar?
Deployment of web application