General J2EE: Get the path of Property file and read from the same file

  1. Hi

    I have created a property file in java and placed the same inside the WEB-INF folder. How can i access the full path of the property file inside my src code and how will i read the data from the same file?

    If i made any changes to the above file it will affect when i stop the server and again start it. is there any other methods to get the changes without stopping/starting the server?

    Could anyone please help me on this ?

    Thanks in advance

  2. Place the property file outside the project folder and read from there.

    eg: /opt/myProperties.properties