<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body link="#0000EE" text="#000000" vlink="#551A8B" alink="#EE0000"
bgcolor="#ffffff">
<font face="Helvetica, Arial, sans-serif"><br>
<small>I just pushed changes for
<a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/show_bug.cgi?id=824010">https://bugzilla.redhat.com/show_bug.cgi?id=824010</a>. With this
change the agent no longer uses the native implementation of
Java Preferences. Instead, it uses our custom implementation
(FilePreferences.java). Now the agent configuration will be
stored in a configurable file, as opposed to the default file
location on Linux and the registry on windows.<br>
<br>
By default, and there shouldn't be a lot of need to change from
the default, the agent config will be placed in
RHQ_AGENT_HOME/conf/agent-prefs.properties.<br>
<br>
For new agents there shouldn't be any discernible difference in
behavior, other than the new file being generated. For existing
agents the preferences will be migrated from the native storage
to our file storage during the agent auto update procedure.<br>
<br>
BUT, for your dev environments, where you likely don't go
through an autoupdate, you have a few options. Start by:<br>
</small><br>
<small><small>1) bring down your agent.<br>
2) rebuild the agent: mvn -Pagent<br>
<br>
Option 1 (easiest, new agent):</small><br>
</small></font>
<blockquote><font face="Helvetica, Arial, sans-serif"><small>3)
delete your registered agent, either via the new Delete button
under Administration->Topology->Agents or by just doing
a dbsetup.</small><br>
<small>4) start your new agent and enter the setup info as usual</small><br>
</font></blockquote>
<font face="Helvetica, Arial, sans-serif"><small>Option 2
(recommended, autoupdate):<br>
</small></font>
<blockquote><font face="Helvetica, Arial, sans-serif"><small>3)
rebuild the appserver/autoupdate module</small><br>
<small>4) copy the autoupdate jar to your agent home dir</small><br>
<small>5) > java -jar
rhq-enterprise-agentupdate-4.7.0-SNAPSHOT.jar -u</small><br>
6)<small> your updated agent should now be running and using the
migrated prefs</small><br>
<br>
</font></blockquote>
<small><font face="Helvetica, Arial, sans-serif">Note, option 1 will
leave your old prefs in the native prefs store. Option 2 will
clean them up as part of the migration. If you have time try
option 2, it will test the code better and do the cleanup.<br>
<br>
Jay</font></small><br>
</body>
</html>