tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Downey <down...@cs.fiu.edu>
Subject Re: multiuser tomcat environment
Date Fri, 02 Jan 2004 16:00:24 GMT


 >> The main perpose of the server - a programming course,the
 >> students should develope their projects on it.
 >> Students probably should be able to do the folowing:
 >> [1] deploy/redeply/reload their applications

Using Tomcat as a stand-alone server, you can create a ~ directory for each
user in /etc/passwd. Add a Listener for UserConfig in the Host.

 >> [2] they should NOT be able to do the same for the
 >>    other students applications

The ~ directories have individual user access privileges.

 >> [3] they can't restart the server ,of course, since
 >>     students don't have root access.

I am unfamiliar with creating a new manager, but it seems that you should
be able to write a servlet that can only be accessed by registered users.
This servlet will send stop/start for a particular user's web app directory.
It is possible to send messages to the manager via HTTP. Your servlet
will need to authenticate as the manager, and then send the correct HTTP
request.

Perhaps someone else has a slicker solution. I would love to hear it.

 >> So,using manager app is not appropriate - that way all the
 >> students will be able to manage all the application.

-- 
Tim Downey



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message