-
1. Re: java.util.prefs.PreferencesFactory and rhq.preferences.file properties are ignored (4.9.0)
jayshaughnessy Oct 10, 2013 12:02 PM (in response to lukasz74nj)1 of 1 people found this helpfulHi Lukasz,
I haven't tried this in a while but looking at what you wrote and looking back at http://jayshaughnessy.blogspot.com/2013/03/store-your-rhq-agent-preferences-in-file.html, it seems you've done what you need to do. Looking at the code it would seem that for some reason the -Drhq.preferences.file is not getting picked up, because the code is pretty straightforward.
If I get the chance today I'll give it a try. You may want to try from scratch by removing the service (rhqctl remove --agent) and then re-installing the service (rhqctl install --agent). Maybe save the current prefs file in a safe place so you can reference values you may need.
-
2. Re: java.util.prefs.PreferencesFactory and rhq.preferences.file properties are ignored (4.9.0)
lukasz74nj Oct 10, 2013 1:02 PM (in response to jayshaughnessy)Hi Jay,
Actually, this setup is for a standalone agent (no the one that gets installed on the same machine with the RHQ server). Let me know if you can replicate this issue.
Thanks,
Lukasz
-
3. Re: java.util.prefs.PreferencesFactory and rhq.preferences.file properties are ignored (4.9.0)
lukasz74nj Oct 10, 2013 3:02 PM (in response to lukasz74nj)I used a workaround by relocating the Java Preferences store location by using the java.util.prefs.userRoot property. This way, even if the user home directory is shared on NAS, each agent has its own private preferences store.
-
4. Re: java.util.prefs.PreferencesFactory and rhq.preferences.file properties are ignored (4.9.0)
mazz Oct 10, 2013 3:17 PM (in response to lukasz74nj)did you happen to read the docs and FAQ on this stuff? Just for the record:
The FAQ (there are several sections that refer to the preferences):
https://docs.jboss.org/author/display/RHQ/FAQ
Here's an agent page on it:
-
5. Re: java.util.prefs.PreferencesFactory and rhq.preferences.file properties are ignored (4.9.0)
lukasz74nj Oct 10, 2013 5:02 PM (in response to mazz)Yes, I did but these were not helpful in resolving my issue.