[jboss-user] [Beginner's Corner] - Re: Externalizing resource adapter configs from standalone.xml in Jboss-as 7.1.1
Doug Grove
do-not-reply at jboss.com
Wed Jun 26 17:35:48 EDT 2013
Doug Grove [https://community.jboss.org/people/dgrove_redhat.com] created the discussion
"Re: Externalizing resource adapter configs from standalone.xml in Jboss-as 7.1.1"
To view the discussion, visit: https://community.jboss.org/message/825105#825105
--------------------------------------------------------------
This is certainly possible. Note that JBoss supports a variety of property substitutions. For example, in the standalone.xml file, you could have:
<system-properties>
<property name="wmq.host" value="10.0.0.150"/>
<property name="wmq.port" value="1414"/>
</system-properties>
Then:
<connection-definitions>
<connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:/WSMQ" enabled="true" pool-name="WSMQ" use-ccm="true">
<config-property name="port">
${wmq.port}
</config-property>
<config-property name="hostName">
${wmq.host}
</config-property>
This applies as well to ejb-jar.xml files and jboss.xml files. Ensure that the proper property substitutions are enabled in standalone.xml:
<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>
Hope that helps,
Doug
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/825105#825105]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130626/1d490937/attachment.html
More information about the jboss-user
mailing list