[jboss-jira] [JBoss JIRA] (WFLY-2334) EL expansion broken in persistence.xml

Ken H (JIRA) issues at jboss.org
Mon May 19 16:48:57 EDT 2014


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

Ken H commented on WFLY-2334:
-----------------------------

That configuration option did not exist be default in the 7.1.1.Final standalone and the default behavior there was true. I suspect it was either added later and set to false or the default was changed after that release. Either way, the default change broke backwards compatibility of the configuration. It's way too late to be complaining about it now but thanks for providing a simple resolution.

> EL expansion broken in persistence.xml
> --------------------------------------
>
>                 Key: WFLY-2334
>                 URL: https://issues.jboss.org/browse/WFLY-2334
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JPA / Hibernate
>    Affects Versions: JBoss AS7 7.2.0.Final, 8.0.0.Final
>         Environment: OSX, jdk 1.7.0_21
>            Reporter: Ken H
>
> When testing migration from Jboss AS 7.1.1 to 7.2.0.Final or WildFly 8.0.0.Final, EL evaluation in persistence.xml no longer functions. I had been using this to change the jta-data-source name for specific environments using environment variables.
> {code}
> <jta-data-source>java:/myds/datasources/${datasource.name:myds}</jta-data-source>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list