camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "raghu.j" <r_janardha...@hotmail.com>
Subject Re: How to specify route to folder with $ in actual name
Date Thu, 16 Sep 2010 12:50:05 GMT

- Camel version (2.0)
- OS (Windows - Windows 2003 Server (64 bit)
- Log of the error reported - I don't have it handy 
- Snippet of Camel route 
<route>
                <from ref="EP_LDNS_XML_REPORT_QUEUE"/>
                <bean ref="reportGenerator"/>
</route>

<bean id="reportGenerator" class="com.edifecs.eip.report.ReportGenerator">
                <property name="reportPathPDF"
value="#{edi.error.report.pdf}"></property>
                <property name="reportPathTXT"
value="#{edi.error.report.txt}"></property>
</bean>


Where the properties are loaded using the fallowing PlaceHolder configurer
<bean id="var"
class="com.edifecs.eip.spring.EnvPropertyPlaceholderConfigurer">
    <property name="placeholderPrefix" value="#{"/>
    <property name="placeholderSuffix" value="}"/>
    <property name="location"
value="file:#{ECRootPath}/TM/ServiceManager/EIPServices/conf/eip-params.properties"/>
  </bean>

Where EnvPropertyPlaceholderConfigurer has the following code:

public class EnvPropertyPlaceholderConfigurer extends
PropertyPlaceholderConfigurer {
    @Override
    public void setLocation(Resource location) {
        try {
            String resolvedLocation =
parseStringValue(location.getURL().toExternalForm(), new Properties(), new
HashSet());
            location = SpringConverters.toResource(resolvedLocation);
        } catch (IOException e) {
            logger.error("Error resolving location: " + location, e);
        }
        super.setLocation(location);
    }
}

-- 
View this message in context: http://camel.465427.n5.nabble.com/How-to-specify-route-to-folder-with-in-actual-name-tp2839895p2842208.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message