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
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
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.
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.
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
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
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
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
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.
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.
---
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.
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.
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
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
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.
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
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})")
=
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
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.
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
20 matches
Mail list logo