I have service.properties and service-properties.xml in mule based project. How can i define that service.properties should load before service-properties.xml. Because i am using the properties of service.properties in service-properties.xml. because i have this code in service-properties.xml file:
<context:property-placeholder
location="classpath:mule/service.properties"
properties-ref="propertiesHolder" />
<context:annotation-config />
<spring:bean id="propertiesHolder"
class="MyClass">
<spring:property name="dataSource" ref="dataSource" />
</spring:bean>
<spring:bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<spring:property name="driverClassName value="${db.driverClassName}" />
<spring:property name="url" value="${db.url}" />
<spring:property name="username" value="${db.username}" />
<spring:property name="password" value="${db.password}" />
</spring:bean>
My project is build successfully but when i run project it can not resolve db.driverClassName, db.url, ... and db.password from service.properties but i have them in service.properties file.