FTP siteCommand Option

2013-10-01 Thread anakin59490
Hi, i want to upload file to a server but when i run the program, i got this message : "Writing file failed with: File operation failed: 501 File must be specified by library/file.member. Cannot change directory to: /. Code: 501" Because when i login to the server, i login to AS400 I thi

rename a file

2013-11-27 Thread anakin59490
Hi, I've got issue for renaming a file this is my route : from("direct:checkData") .beanRef(PAYMENT_SERVICE_BEAN, "checkData(*, ${headers})") .choice() .when(simple("${in.body} != null")) .to("{{destination.en

Re: rename a file

2013-11-27 Thread anakin59490
Thank you for the link ! but i have got another issue My route : from("direct:checkData") .beanRef(PAYMENT_SERVICE_BEAN, "checkData(*, ${headers})") .recipientList(simple("freemarker:\\xx/echange/Payment/SAVE/&{in.body}")).stopOnException() The issue : Failed to resolve endpo

Re: rename a file

2013-11-28 Thread anakin59490
Hi, ok it works with : recipientList(simple("file:/\\xx/echange/MassPayment/SAVE/?fileName=${header.newName}")).stopOnException() the newName value is generated in "checkData" bean (headers.put("newName", h7310B.getP_NEW_NAME()); But i have a question if i try, in my route : .recipien

Re: rename a file

2013-11-28 Thread anakin59490
It works !! Thank you !! -- View this message in context: http://camel.465427.n5.nabble.com/rename-a-file-tp5743924p5744046.html Sent from the Camel - Users mailing list archive at Nabble.com.

set property before starting

2013-11-29 Thread anakin59490
Hi, I wrote this route : @Component public class MassPaymentInRoute extends SpringRouteBuilder { @Value("${user.password}") String cryptedPwd; String decryptedPwd; @Override public void configure() { Cipher cs = new Cipher(); try

Re: set property before starting

2013-12-02 Thread anakin59490
Hi, It doesn't work by using properties file, this is what i tried : In my route, fromF("ftp://{{user.name}}:%s@xx//echange/MassPayment/IN/?noop=false&initialDelay=0&idempotent=true&stepwise=false";, decryptedPwd) --> OK, it works ! but if i use my properties file : fromF("{{source.en

xslt: component

2012-11-09 Thread anakin59490
Hello, I would like to check a xml file with a xsd file. I try to use the xslt: component but it doesn't work. this is my xml file: 90 80 99 this is my xsd file : http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified"> and this is m

Re: xslt: component

2012-11-09 Thread anakin59490
Thank you very much Bob !! It works !! In fact check, was my first step, but i used xslt: component because i must transform my xml file in an other xml file (the same without specifics tags). But i thought that it could do both (check and transform). I work with camel version 2.9. I've read o

Re: xslt: component

2012-11-09 Thread anakin59490
Ok ! Do you think that i could transform my xml in another xml (the same without specifics tags) with Xalan and a xsd file ? Do you use xalan 2.7.1 ? (i found this version on maven repository...) thank you -- View this message in context: http://camel.465427.n5.nabble.com/xslt-component

properties: key

2013-02-11 Thread anakin59490
Hi, is it possible to compose the key for the property to lookup ? example: I write .to("properties:{{myname.is.bond}}") OK, it works but i would like to use the headers .to("properties:{{myname.is.{headers.name}}} or something in this way is it possible ? Thank you

How add a property ?

2013-02-13 Thread anakin59490
hello, I would like to add a property in the file which is defined in my camelContext : In my filtersDefinition_dev.properties file, i wrote : sepa.splitter=test and i would like to add a new property : sepa.splitter2=test2 I try to do that in a bean : @Resource(name="properties") protected