On Wed, Jun 23, 2010 at 10:59 AM, Schneider Christian <christian.schnei...@enbw.com> wrote: > Hi all, > > I got the following problem. I want to configure a file Endpoint using the > File Language that should additionally have Properties replaced. As we are > still on Camel 2.1 we can only use properties in Spring Language Endpoint > tags. > > So my try was: > <endpoint id="errorEndpoint" > uri="file://${errorDir}?fileName=${file:name}.txt"/> >
Placeholders in the fileName option is not supported by Spring property placeholder. You gotta use the new 2.3 version for that. You can try using the bean style instead <bean id="errorEndpoint" class="org.apache .... FileEndpoint"> <property name="fileName" value="${someSpringPropertyKeyHere"/> <!-- and set all the other options as well --> </bean> > The problem is that file:name is not recoginzed. > > When I use the uri directly in <to> the file:name works but I can´t use > ${errorDir} there. > So what works is: > <to uri="file://target/error?fileName=${file:name}.txt"/> > > Any ideas? > > Greetings > > Christian > > > Christian Schneider > Informationsverarbeitung > Business Solutions > Handel und Dispatching > > Tel : +49-(0)721-63-15482 > > EnBW Systeme Infrastruktur Support GmbH > Sitz der Gesellschaft: Karlsruhe > Handelsregister: Amtsgericht Mannheim - HRB 108550 > Vorsitzender des Aufsichtsrats: Dr. Bernhard Beck > Geschäftsführer: Jochen Adenau, Hans-Günther Meier > > > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus