Hi, Straight up file manipulation is one way, but the better way is in deed the MemoryUserDatabase(Factory) and its JMX operations. You can see how the admin webapp does it by looking at the relevant admin webapp code. Your code needs to be privileged and probably in common classloader in order to see the class.
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Robert Harper [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 15, 2004 4:33 PM >To: Tomcat Users >Subject: Connecting and updating the tomcat-users.xml database > >Is there a way, other than the administration page, to update and read the >tomcat-users.xml database? I tried to use MemoryUsersDatabase but when the >code >runs, the JVM cannot load the class. Is there some other mechanism or an >accepted way for a servlet to update the database without having to use the >admin tool? > > > >Robert S. Harper > >Senior Engineer > >1100 East 6600 South, Suite 300 > >Salt Lake City, UT 84121-7411 > >801.265.8800 ex. 255 > > This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
