reload tomcat-users.xml
2 answers
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.
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.