[jboss-jira] [JBoss JIRA] (AS7-3195) Expansion of variables in persistence.xml
Mark Kempster (JIRA)
jira-events at lists.jboss.org
Fri Mar 23 09:55:47 EDT 2012
[ https://issues.jboss.org/browse/AS7-3195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678956#comment-12678956 ]
Mark Kempster commented on AS7-3195:
------------------------------------
My app was defining properties in an external .properties file, then loading them into system properties for later use. They seemeed to be available in time for expansion into persistence.xml with 7.0.2, but that behavior seems to be different for 7.1.1. Defining the property directly in standalone.xml seems to work, and make the values available for substitution during deployment.
Properties were externalized so that deployables could ship with their config files in a 'hot' directory, and deployed to different as7 servers as needed. This let us define one hot directory in standalone.xml, and drop deployable .properties files there, instead of having to mangle standalone.xml for each deployable.
For properties that need to be available when a deployable is being deployed, is standalone.xml the right place to put those? Is there an approved way to externalize those? The admin guide (https://docs.jboss.org/author/display/AS7/General+configuration+concepts) doesn't mention any alternatives.
Thanks
> Expansion of variables in persistence.xml
> -----------------------------------------
>
> Key: AS7-3195
> URL: https://issues.jboss.org/browse/AS7-3195
> Project: Application Server 7
> Issue Type: Feature Request
> Components: JPA / Hibernate
> Affects Versions: 7.0.2.Final
> Reporter: Hasan Ceylan
> Assignee: Oleg Kulikov
> Fix For: 7.1.1.Final
>
>
> Hello,
> I am not sure if this is a bug or a feature request.
>
> IIR, expansion of variables in the form of ${foo.bar} was supported in persistence.xml (and may be other).
>
> In Jboss 7.X, I see this is not supported.
>
> Regards,
> Hasan Ceylan
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list