saving properties file on tomcat server

M

Marcin Go³dyn

Hello
I have an application which updating properties files during working on
tomcat server. To this file i`m adding a new user. Physically he is added
but when i`m trying to logon one more time i got message that there is no
such a user in properties file. It`s working only when i reset tomcat server

like this i read files:

InputStream in1 = new
FileInputStream(session.getServletContext().getRealPath("/")+"WEB-INF/classes/access.properties");
InputStream in2 = new
FileInputStream(session.getServletContext().getRealPath("/")+"WEB-INF/classes/users.properties");
properties.load( in1 );
properties2.load( in2 );

regards
Marcin Goldyn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top