How to configure mail-service.xml with properties Substitution ?
Issue
- How to use the properties in the
"mail-service.xml"
For instance, instead of hardcoding the values for the"mail.smtp.host"
and"port"
, We would like to set the properties as follows:
<property name="mail.smtp.host" value="${app.mail.smtp.host}"/>
<property name="mail.smtp.port" value="${app.mail.smtp.port}"/>
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.1.x
- 5.0.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.