Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix or Usage Issue
-
Affects Version/s: 1.4.0
-
Fix Version/s: None
-
Component/s: Core: Configuration, Modules: Spring
-
Labels:None
-
User impact:Low
-
Similar Issues:
MULE-2150Check System Properties in 2.0MULE-1233SpringConfigurationBuilder: global endpoint do not workMULE-2751SpringConfigurationBuilder does not preserve container contexts from a mule configurationMULE-661Spring MuleEventMulticaster doesn't workMULE-1226SpringConfigurationBuilder wrong translation of connector reference in Mule configuration fileMULE-275Sample errorhandler doesn't workMULE-5919Reply-To doesn't work for WMQ transportMULE-5171IMAP transport inbound endpoint doesn't work. Fails to retrieve email messagesMULE-5683cxf:jaxws-service mtomEnabled doesn't workMULE-640JMS session caching doesn't work
Description
"system-property" (the one which lets you use an environment variable to set a property in your Mule config don't work with the SpringConfigurationBuilder.
To reproduce, use the SpringConfigurationBuilder to load the LoanBroker-ESB config. The following property from the config is no longer set to $MULE_HOME (and because of that the OpenEJB config is not located)
<system-property name="openejb.base" key="mule.home"/>
Issue Links
| Related | |||
|---|---|---|---|
|
|
|
||
This is resolved by using spring's PropertyPlaceholderConfigurer
The PropertyPlaceholderConfigurer is generaly used with 1 or more property files. It can however be used on its without property files and will resolve system properties.
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>The placeholder _${mule.home}_ is then used where this value is needed.
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>