EHC ❯ Insert Properties into ehcache.xml
-
Bug
-
Status: Closed
-
0 Showstopper
-
Resolution: Fixed
-
-
-
prodmgmt
-
Reporter: sourceforgetracker
-
September 21, 2009
-
0
-
Watchers: 2
-
July 16, 2012
-
September 22, 2009
Description
I’d like to be able to insert system properties into the ehcache.xml file.
Many of the .xml configuration files used in JBoss allow you to insert a system property into the file using a ${property} notation. This makes it easier to have a single version of a file deployed to multiple environments, with system properties used to capture environment specific details.
As a specific example with ehcache: when configuring distributed caching, a multicast group address needs to be specified for the cacheManagerProviderFactory. This IP address will be different between our Production, Staging, Test, and Development environments, but the rest of the ehcache.xml file is identical across all of these environments. In a machine specific launch script, I’d like to define a system property “multicastAddress=230.0.0.12”, and then insert that into the ehcache.xml config file as:
Sourceforge Ticket ID: 1743082 - Opened By: nobody - 25 Jun 2007 19:05 UTC
Comments
Fiona OShea 2009-09-22
boniek boniek 2012-07-16
Is it really fixed? I see no such functionality in ehcache.
Tim Eck 2012-07-16
I didn’t make the fix and I haven’t personally verified anything but the translateSystemProperties() method in ./src/main/java/net/sf/ehcache/config/ConfigurationFactory.java seems to be in direct response to this item
Tim Eck 2012-07-16
boniek –> What ehcache version are you testing with. If you think there is a bug in here please file a new JIRA
Re-opening so that I can properly close out these issues and have correct Resolution status in Jira