Skip to main content

prefs.xml(java.utils.prefs.Preference) automatically refrsh by Glassfish

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2013-05-05

In my current application we are using Glassfish to deploy my ear file and We read the user specific values from different places and store it into java.util.prefs.Preference to user it latter. We also have options to change the java.util.prefs.Preference externally. Now the questions are:

a) Recently I found, whenever I am starting my application in Glassfish, Glassfish creating a prefs.xml file containing all the preference I set under /.java/.userPrefs/. But no where I have written code to store the same in this location. So, is that Glassfish's default behavior to store the preferences in this location? or is there any settings?