Message Boards

Reloading of portal-ext.properties

thumbnail
Jan Gregor, modified 12 Years ago.

Reloading of portal-ext.properties

Regular Member Posts: 224 Join Date: 10/20/10 Recent Posts
It will be interesting, if jrebel can also reloads all properties configurable in portal-ext.properties. Some of them are also modifable via hook and these are supported also by jrebel, when they are inside a hook. But there is a plenty of properties not supported by a hook sitting insde the portal, which will be nice to have supported by JRebel.

Regards,
Jan.
thumbnail
Andres Luuk, modified 12 Years ago.

RE: Reloading of portal-ext.properties

New Member Posts: 11 Join Date: 12/19/11 Recent Posts
I added the reloading of portal*.properties from Liferay core/ext environment.
I didn't change the loading of portal-ext.properties in hooks because we don't want JRebel + Liferay to work differently then normal Liferay alone would.

About the addition:
When, for example, the monitored portal-ext.properties file in Liferay ext is changed then JRebel now loads the new data to PropsUtil and resets the fields of PropsValues to have the new values.
Now when we have a place that re-asks the parameters from thous classes, they will get the new value.
I did not go deeper with the integration because after the Props* classes every parameeter is treated very differently.

The new addition is in the JRebel nightly build: http://zeroturnaround.com/jrebel/early-access/