[infinispan-issues] [JBoss JIRA] Commented: (ISPN-1228) Support properties placeholders on infinispan configuration files

Manik Surtani (JIRA) jira-events at lists.jboss.org
Mon Jul 18 15:08:23 EDT 2011


    [ https://issues.jboss.org/browse/ISPN-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614891#comment-12614891 ] 

Manik Surtani commented on ISPN-1228:
-------------------------------------

Infinispan already supports this.  See this unit test that proves it:

https://github.com/infinispan/infinispan/blob/master/core/src/test/java/org/infinispan/config/StringPropertyReplacementTest.java

which makes use of this test config file:

https://github.com/infinispan/infinispan/blob/master/core/src/test/resources/configs/string-property-replaced.xml

Please try this out and reopen if it doesn't work for you, and we will investigate.

> Support properties placeholders on infinispan configuration files
> -----------------------------------------------------------------
>
>                 Key: ISPN-1228
>                 URL: https://issues.jboss.org/browse/ISPN-1228
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: Configuration
>    Affects Versions: 5.0.0.CR7
>            Reporter: Raúl Raja Martínez
>            Assignee: Manik Surtani
>
> Currently all values configured in infinispan.xml need to be hardcoded in the file as System property placeholders are not supported.
> There are many cases when it's not ideal to have the values there for example when configuring a jdbc cache store, the db, user, pass, etc... need to be hardcoded for the configuration to work.
> Ideally infinispan would resolve placeholders such as ${jdbc.user} to a predefined system property or a property file, with that name in the same way other frameworks like spring, ant, maven, etc... do.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list