Give setHeader a non-constant value

2014-07-16 Thread Licia
Hello everyone, I encountered a problem. I would like to pass to setHeader a non-constant expression, but I can't seem to manage to do it. My *route* looks like that : //My own function that works well int monthId = getLastIdFromBasis(); //Transforming xml into database from

Using xpath inside an exchange

2014-07-15 Thread Licia
Hi everyone ! I'm still new to camel and I'm trying to use the enrich methode and the aggregation strategy. What's I'm trying to do is merging 2 xml files that look alike, like *this* : ?xml version=1.0 encoding=UTF-8? numbers month name =Janvier ca12/ca

Configuring database with jdbc

2014-07-09 Thread Licia
Hi everyone, I'm currently still new at camel and I'm encoutering a problem. In fact, I have to use jdbc to make some Select/Insert SQL requests on my database. Until here, everything good. But when I use the configure method, I have a Failed to resolve endpoint error. Here is the

Re: Configuring database with jdbc

2014-07-09 Thread Licia
I don't really understand what you mean by data source spring configuration. Maybe it's something I lack. -- View this message in context: http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753583.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Configuring database with jdbc

2014-07-09 Thread Licia
So I tried what you all said. (And now I get it about the springConfiguration). My spring configuration now looks like that : ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:jdbc=http://www.springframework.org/schema/jdbc;

Re: Configuring database with jdbc

2014-07-09 Thread Licia
I think you saw the next error I was going to running to. But it didn't change the problem. I even tried to add in my pom.xml dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.9/version /dependency Just to see

Re: Configuring database with jdbc

2014-07-09 Thread Licia
Here is my* spring configuration *: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:jdbc=http://www.springframework.org/schema/jdbc; xmlns:camel=http://camel.apache.org/schema/spring;

Re: Configuring database with jdbc

2014-07-09 Thread Licia
I tried what you said. I just removed the camel-context.xml and wrote this in my main : public static void main( String[] args ) throws Exception { //Configuring the database DriverManagerDataSource ds= new DriverManagerDataSource();

Re: Configuring database with jdbc

2014-07-09 Thread Licia
It works well now, thank you, I don't think I would have been able to see it myself. Just so that this post is not useless, I would (now) recommend the registry method that was given, it helped me a lot. I also looked at another question that had been asked and that helped me :

Re: AW: Problem with ETL example

2014-06-13 Thread Licia
First of, thank you for your answer. But the thing is the probleme is not really solved because after i compiled using your tip, the console is still running on and on again, but with a different type of message that I understand even less than before... 26626 camel TRACE [Camel (camel)

Re: AW: Problem with ETL example

2014-06-13 Thread Licia
Thanks a lot ! It works now, I mean nothing get to be print on the console. But what I'm wondering is the following. I don't really understand how the Main class works. It just goes : public class Main extends org.apache.camel.spring.Main { public static void main(String... args) throws