Re: Assigning File names to exchanges generated from split

2013-07-26 Thread Bovas
I resolve my problem. .setHeader(Exchange.FILE_NAME).simple("${bean:mybean?method=getRes('test')}.txt") - regards, Bovas -- View this message in context: http://camel.465427.n5.nabble.com/Assigning-File-names-to-exchanges-generated-from-split-tp5715603p5736281.html

Re: Assigning File names to exchanges generated from split

2013-07-25 Thread Bovas
hod?method=getAttribute('test')") .to('file://path) public String getAttribute(String key){ String res = key int nb = 0; nb++ return res +"${nb}; } it doesn't work :/ - regards, Bovas -- Vie

Re: Probleme with startorder

2013-07-23 Thread Bovas
Thanks Claus, it works perfectly - regards, Bovas -- View this message in context: http://camel.465427.n5.nabble.com/Probleme-with-startorder-tp5736034p5736134.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Probleme with startorder

2013-07-23 Thread Bovas
st route finish. - regards, Bovas -- View this message in context: http://camel.465427.n5.nabble.com/Probleme-with-startorder-tp5736034p5736066.html Sent from the Camel - Users mailing list archive at Nabble.com.

Probleme with startorder

2013-07-22 Thread Bovas
the bean, and I need to use this variable in the second method. schema : from directory1>method1 from directory2------>method2--->to folder - regards, Bovas -- View this message in context: http://camel.465427.n5.nabble.com/Probl

Re: CamelTestSupport Import

2013-07-11 Thread Bovas
Thanks for your answer Wiliem yeah I have imported camel-core and camel-context, JUnit 4 library but I found my error, I imported a library which was in conflict with other. - regards, Bovas -- View this message in context: http://camel.465427.n5.nabble.com/CamelTestSupport-Import

CamelTestSupport Import

2013-07-10 Thread Bovas
e jar here http://www.findjar.com/class/org/apache/camel/test/junit4/CamelTestSupport.html but I should download others jar... and it's doesn't work. Can someone help me pls. Thanks - regards, Bovas -- View this message in context: http://camel.465427.n5.nabble.com/CamelTestSupport-I

Camel Test Hierarchy is inconsistent

2013-07-10 Thread Bovas
the class - class x, x inherits y, and in turn, y inherits z. However, the compiler cannot resolve z, because z is belong to a library that is not included. I have include camel-test-2.11.0.jar I forgot some imports? - regards, Bovas -- View this message in context: http://camel.465427

Re: synchronization Camel and JFrame

2013-07-05 Thread Bovas
It's fine, I found a solution :) - regards, Bovas -- View this message in context: http://camel.465427.n5.nabble.com/synchronization-Camel-and-JFrame-tp5735155p5735197.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: synchronization Camel and JFrame

2013-07-04 Thread Bovas
thanks it works Gérald I add my text in my JFrame using process(new Processor){... But now I have another problem I would like to call my JFrame in a method bean exemple : .to("bean://mybean?method=log('test',*myjframe*)") but Camel doesn't run the method. ---

Re: synchronization Camel and JFrame

2013-07-04 Thread Bovas
gards - regards, Bovas -- View this message in context: http://camel.465427.n5.nabble.com/synchronization-Camel-and-JFrame-tp5735155p5735176.html Sent from the Camel - Users mailing list archive at Nabble.com.

synchronization Camel and JFrame

2013-07-03 Thread Bovas
some ideas, I take it. Thanks regards - regards, Bovas -- View this message in context: http://camel.465427.n5.nabble.com/synchronization-Camel-and-JFrame-tp5735155.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Help Jaxb

2013-05-30 Thread Bovas
in route: Route(route1)[[From[file://c/dev/camel/in2]] -> [To[bean://v... *because of Data format 'jaxb' could not be created. Ensure that the data format is valid and the associated Camel component is present on the classpath* I'm missing something. I'm hopeless

Help Jaxb

2013-05-29 Thread Bovas
meone help me please? or give me a simple use of jaxb. <http://camel.465427.n5.nabble.com/file/n5733397/jaxbtest.png> My class customer : <http://camel.465427.n5.nabble.com/file/n5733397/customer.png> regards, Bovas -- View this message in context: http://camel.465427.n5.nab

Re: bean, collections in parameters - groovy

2013-05-03 Thread Bovas
Thanks a lot Claus, it works I defined my map in my bean and modified it inside. -- View this message in context: http://camel.465427.n5.nabble.com/bean-collections-in-parameters-groovy-tp5731778p5731958.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: bean, collections in parameters - groovy

2013-05-02 Thread Bovas
Thanks Claus for your answer. I do another way, I create a fonction which return my map (like Christian said, thanks to you Christian). But now I just search how I could use my map in another file. i.e => 1) from(file1) bean(function1) function which returns a map 2) from(file2) bean(function2

Re: bean, collections in parameters - groovy

2013-05-02 Thread Bovas
Thanks for your anwsers. But I don't success. I use the default Camel registry (jndiContext) *def jndiContext = new JndiContext() def mymap= [:] mymap["Mode"]="Zip" mymap["test"]="test" jndiContext.bind("myMap",mymap)* from("file://path") .to("bean://myclass?method=myFonction(${ref:myMap})") =

bean, collections in parameters - groovy

2013-04-30 Thread Bovas
Hi I use the Groovy DSL, Apache Camel 2.11.0. I have a problem when I put a Map or a List in parameters in a bean. I declared à map : *def mymap= [:] mymap["Mode"]="Zip" mymap["test"]="test"* my route : *from("file://path") .to("bean://myclass?method=myFonction(${mymap})")* how looks my fonctio

Re: conserve output filename

2013-04-24 Thread Bovas
Thanks just need to add this instruction : exchange.getOut().setHeaders(exchange.getIn().getHeaders()) -- View this message in context: http://camel.465427.n5.nabble.com/conserve-output-filename-tp5731440p5731451.html Sent from the Camel - Users mailing list archive at Nabble.com.

conserve output filename

2013-04-24 Thread Bovas
Hi, I'm new. I have a question. How can I conserve the names and extension of inputfile? Because when I modify each files of my folder, in output the names and extension are not the same (ID-1546...). I use Apache Camel 2.11, language : Groovy. my source code : context.addRoutes(new RouteBuilde