Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

reload tomcat-users.xml

How can I reload the tomcat-user.xml file after update without restart the tomcat server? We use Tomcat for the RTC

Thanks,

Joseph

1 vote



2 answers

Permanent link
This is not possible. The file is read at startup and kept in memory.

But why do you want to update the tomcat-users.xml directly without restarting Tomcat? If you use it as a way to add new users in bulk, then I can't see the benefit since you still have to add the new users one by one in the JTS admin page. In this case, why not just create the users directly in the JTS admin page?

Note that when you create/update users in the JTS admin page, or a user changes her password, the in-memory copy of the tomcat-users.xml will be changed and then saved to the disk - meaning that any direct updates to the file on the disk will be lost.

1 vote


Permanent link

How the JTS admin is able to change without restart server, is there an API can be used for program call?

0 votes

Comments

I'm not familiar with Tomcat API. The tomcat-users.xml file is the backing of the UserDatabaseRealm, which is a JNDI resource, and it should not be too difficult to do that as long as you are an experienced Java developer in this area.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 20 '15, 4:33 p.m.

Question was seen: 8,723 times

Last updated: May 21 '15, 8:49 p.m.

Confirmation Cancel Confirm