Unable to map placeholder values in jboss-esb.xml with property-service.xml
Issue
- A
properties-service.xmlfile is being deployed along withjboss-esb.xmlfile in the same folderESB-APPLICATION.esb/META-INF/which contains values for many properties which are used insidejboss-esb.xmlfile of an ESB application. There are near about15JBoss ESB applications running in the same server instance with above specified structure.
When theRed Hat JBoss SOA Platformserver is restarted, some of the property values does not integrate with the placeholder defined injboss-esb.xmlfile at runtime and thus fails to deploy the ESB application. Specially it happens with numeric values defined in theproperties-service.xml.
jboss-esb.xml:
<listeners><sql-listener busidref="listnr-one" is-gateway="true" name="FirstSqlListener" poll-frequency-seconds="${ESB_POLL_FREQ_SEC}"/></listeners>
properties-service.xml:
ESB_POLL_FREQ_SEC=5
The ERROR message is:
Caused by: org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: Invalid integer value: ${ESB_POLL_FREQ_SEC}
What is the reason behind this strange behaviour and how to fix it?
Environment
- Red Hat JBoss SOA Platform (SOA-P)
- 5.0.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
