Route Camel : Pass variables in a SQL query

2009-09-27 Thread titexe
Hello, I'm trying to develop a route camel who can: Retrieve a value from the header of a message and put this value in an SQL query. Below my configuration: UPDATE CAMEL SET B='${in.header.MessageId}' WHERE C=2 When I tested this variable ${in.header.MessageId},

Re: Route Camel : Pass variables in a SQL query

2009-09-27 Thread Roman Kalukiewicz
You set the body to constant value, so you have constant value. Use EL expression instead of constant one if you want it to be evaluated. In simple words put where you have ;) Roman 2009/9/27 titexe : > > Hello, > > I'm trying to develop a route camel who can: > > Retrieve a value from the hea

Re: Route Camel : Pass variables in a SQL query

2009-09-27 Thread Claus Ibsen
On Sun, Sep 27, 2009 at 8:24 PM, Roman Kalukiewicz wrote: > You set the body to constant value, so you have constant value. Use EL > expression instead of constant one if you want it to be evaluated. > > In simple words put where you have ;) > The requires that you have camel-juel.jar on the c