Note that there are some explanatory texts on larger screens.

plurals
  1. POPropertyPlaceholderConfigurer inside routeContext. Can't set uri from property file
    text
    copied!<p>I have property file and I want to set uri in my route from this file:</p> <pre><code> &lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"&gt; &lt;import resource="TransactionsParserConfig.xml"/&gt; &lt;bean id="transactionsValidator" class="com.class.TransactionsValidator"/&gt; &lt;bean id="transactionsValidator123" name="${ftp.host}"/&gt; &lt;!--here I can use property--&gt; &lt;routeContext id="transactionsRoutes" xmlns="http://camel.apache.org/schema/spring"&gt; &lt;route id="routeFTP"&gt; &lt;from uri="direct:start" /&gt; &lt;!--here I can NOT use property--&gt; &lt;from uri="ftps://${ftp.host}/?securityProtocol=SSL"/&gt; etc... &lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"&gt; &lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt; &lt;property name="locations"&gt; &lt;array&gt; &lt;value&gt;classpath:/ftp.properties&lt;/value&gt; &lt;/array&gt; &lt;/property&gt; &lt;/bean&gt; &lt;/beans&gt; </code></pre> <p>But looks like it's not allowed to set uri from property file. Because when I use ${ftp.host} outside the routexContext tag everething is fine. Also even Idea can't redirect me when I hit ctrl+mouseclick inside routeContext. Why?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload