Environment variables in JBoss datasource

前端 未结 1 1951
借酒劲吻你
借酒劲吻你 2021-01-06 07:37

I have a JBoss server running and want to deploy a service. The service connects to a database which is configured in the following xml file



        
相关标签:
1条回答
  • 2021-01-06 08:28

    Make sure you have property substitution enabled in your standalone.xml.

    Look for the following subsytem in standalone.xml, and make sure the values are set to true

    <subsystem xmlns="urn:jboss:domain:ee:1.1">
         <spec-descriptor-property-replacement>true</spec-descriptor-property-replacement>
         <jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement>
    </subsystem>
    

    EDIT: This is only supported for eap6 and jboss 7.1.2 (or later)

    0 讨论(0)
提交回复
热议问题