On 5/23/07, Roger Tismeer <[EMAIL PROTECTED]> wrote:
It takes about 4 minutes or so to (re)start Tomcat .... granted I have
30 webapps loaded, but isn't there a switch somewhere that I can toggle
to not auto-start any non-Tomcat webapps?

I was in a similar situation as you've mentioned above.

I find that keeping the Context descriptor outside server.xml makes it
a lot easier to switch between applications.

Say your apps are named app1, app2, app3 etc and if you access them as

http://localhost:8080/app1  http://localhost:8080/app2
http://localhost:8080/app3 , then

you would define the Context for each app under

Tomcat's /conf/Catalina/localhost/  as app1.xml , app2.xml and app3.xml

Now if you want Tomcat to only load app1 , you just disable the other
XML files by renaming them as in app2.xml_disable app3.xml_something

The above setting will make only app1 visible to Tomcat, when you want
to switch, just rename the Context file back to .xml

Alternatively , if you want all apps to be accessible at the root
context, you just set up virtual hosts, in this case each context
would be called ROOT.xml under it's own host, just disable the
ROOT.xml files of those apps you don't want to load.


This way I can simply Start
the few apps I need via the Manager and as I need more or less, I can do
so.

However, it is not possible to use the Manager app to toggle the
Context XML files' extension, you'd be toggling the extension
manually.

It's a simple way to switch off apps, or switch between apps whenever you want.


Thanks,

Roger Tismeer

-Regards
Rashmi

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to