Hello,
I am trying to implement a function like a HTTP proxy with Apache Camel.
In my proxy, I want to insert a header value in DB,
and I used Simple Expression in SQL.
Here is my camel route.
<route>
<from uri="servlet:///foo" />
<to uri="sql:INSERT INTO TEST_TABLE (TEST_ID, NAME)
VALUES(:#${header.testId},
'test')?noop=true&dataSource=testDataSource" />
<to uri="http4://localhost:8080/test/bar?bridgeEndpoint=true" />
</route>
I was able to insert a header value,
but I lost request body after SQL endpoint in this route.
A response was 400.
The exception is
HTTP operation failed invoking http://localhost:8080/test/bar with
statusCode: 400
I found that the cause is Simple Expression.
However, I don't know why Simple Expression remove a request body,
and how I can resolve this problem.
Camel version is 2.16
Thank you for any help you can provide.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-SQL-Component-with-Simple-Expression-tp5776595.html
Sent from the Camel - Users mailing list archive at Nabble.com.