Provided non distributable enviroment, is there one ServletContext for each webapp.Means if there are 3 webapp in a single web server then there will be 3 ServletContext objects are associated with each web appl.? Bye. Viki.
• Sun Certified Programmer for Java 2 Platform (SCJP2)
• IBM Certified Professional for Object Oriented Analysis and Design with UML
• IBM Certified System Administrator for WebSphere Application Server v5.0
• Certified Business Analysis Professional (CBAP®)
One ServletContext - Object per WebApp. AND: If you have the WebApp running on multiple maschines for loadbalancing/failover purposes: One ServletContext Object per WebApp on every JVM. If you have your webapp cool.war deployed on serverA, serverB, serverC there will be 3 ServletContext objects.
If you have your webapp cool.war deployed on serverA, serverB, serverC there will be 3 ServletContext objects.
If you have your webapp cool.war deployed on serverA, serverB, serverC there will be 3 ServletContext objects one on serverA,second on serverB and third on serverC Is it right? Bye. Viki.
• Sun Certified Programmer for Java 2 Platform (SCJP2)
• IBM Certified Professional for Object Oriented Analysis and Design with UML
• IBM Certified System Administrator for WebSphere Application Server v5.0
• Certified Business Analysis Professional (CBAP®)
Yes. As I said and Jim clarified. There is a long discussion about this topic: http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=18&t=000955 This multi-server stuff puts aditional complexities one is not that aware of if coding with tomcat on a pc. But I am sure that its an important part of j2ee. [ February 27, 2002: Message edited by: Axel Janssen ]
Well THAT's new! Comfort me, reliable tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss