How to “refresh” a property file without restarting GIS/SI

If you need to change a property file in your GIS/SI but you don’t want to restart the server (to apply the changes), you can create a simple business process for this particular file and run it every time you make changes:

<process name="RefreshPropertyFile_BaseEDI">
<operation>
      <participant name="CacheRefreshService"/>
      <output message="Xout">
        <assign to="cache_type" from="'properties'"></assign>
        <assign to="cache_name" from="'base_edi'"></assign>
      </output>
      <input message="Xin">
      </input> 
</operation>
</process>
  • ‘base_edi’ is the property file name without extension (i.e. the full name is base_edi.properties)
  • Don’t forget that you need to change both base_edi.properties and base_edi.properties.in

Gennady Kim

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s