Hi all,

I'm using a PropertyPlaceholderConfigurer to configure ftp locations
in my ftp SU. At deployment I want to override these properties for
different locations (test/acceptance/production) so that I will not
accidentally deploy a production release to test causing the wrong ftp
locations to be used with the possibly disastrous consequences of
production data being lost in the test machine.

I was thinking this could be done by adding a custom property file to
the $apache-servicemix/conf directory and then adding to service.xml
something like

  <bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
      <property name="location" value="classpath:servicemix.properties" />
      <property name="location" value="classpath:custom.properties" />
  </bean>

but this does not work. Also adding the overriden properties to
servicemix.properties does not seem to work.

I read on the mailinglist to look into Spring's
PropertyOverrideConfigurer. However this wants to directly set
properties on Spring beans, but I don't know how the following
ftp:poller translates into a Spring bean:

  <ftp:poller service="dsvcts:ftp"
            endpoint="pollerEndpoint"
            targetService="dsvcts:file"
            targetEndpoint="ftp-sender"
            uri="${ftp.poller.url}">
  </ftp:poller>

If the PropertyOverrideConfigurer is the way to go about this can
anybody please tell how to use this override the uri of this
ftp:poller?

Thanks for any help.

-- 

regards,

Jeroen

Reply via email to