Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat roles for specific applications 1

Status
Not open for further replies.

thrybergh

MIS
Feb 10, 2003
52
GB
Hi

I would like to define a role within Tomcat to allow a special user access to stop/start one named application. Is this possible, or is such a "fine tuning" of the access not allowed? I would be concerned that they may stop/remove the wrong application by accident if they were given full manager access.

Thanks.
 
I think that you should be able to write a servlet that uses the Tomcat Manager's HTML interface. The way I envision it, access to this servlet is restricted to the desired user. The servlet sets request headers for the username and password that Tomcat Manager requires, then issues an HTML request (reload) or two requests (stop, start). (Note: I've read that, in Tomcat 5, the reload command does not re-read the application's deployment descriptor; you have to stop and start to force that.)

So, you should be able to issue:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top