[
https://issues.apache.org/jira/browse/CAMEL-8142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14247846#comment-14247846
]
Claus Ibsen commented on CAMEL-8142:
------------------------------------
In EIP terms then you would use the content enricher, to enrich the result into
a header.
Though I guess this requires more configuration in Camel. Though maybe we could
have an out of the box shorthand syntax for this?
But lets add this patch as its more common to do some SQL and store the result
in a header.
> camel-sql: store query result in header instead of body
> -------------------------------------------------------
>
> Key: CAMEL-8142
> URL: https://issues.apache.org/jira/browse/CAMEL-8142
> Project: Camel
> Issue Type: New Feature
> Components: camel-sql
> Reporter: Daniel Pocock
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.15.0
>
>
> The SQL component stores query results in the message body, clobbering the
> existing body. It would be nice to store the results of some queries in a
> header.
> This would be particularly useful when combined with outputType=SelectOne to
> store a value such as a primary key / object ID into a header.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)