Hi

No there is no strict rule or something, each component can do what is
most appropriate for it.
Sometimes a component has options users can configure on the endpoint
etc that can dictate the format, for example binary, json, pojo, xml
etc.

When you say raw format from debezium what java type does it use, and
is the data in some kind of structure or binary format or what?


On Mon, Jul 29, 2019 at 11:50 AM Omar Al-Safi <[email protected]> wrote:
>
> Hello Camel devs,
>
> I am relatively new to Apache Camel. I am developing a new component to
> Apache Camel that adds the support of https://debezium.io/ to Camel.
> My question is about the message data format when I save the message body
> value into the Message (message.setBody(value)), I was confused if there is
> a strict message format that I should parse my value before saving into the
> exchange message body or I just can save the raw value directly without
> parsing it, is this correct? I was looking at some examples such Kinesis
> <https://github.com/apache/camel/blob/master/components/camel-aws-kinesis/src/main/java/org/apache/camel/component/aws/kinesis/KinesisEndpoint.java#L94>
> and
> Kafka
> <https://github.com/apache/camel/blob/master/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaEndpoint.java#L172>
> and
> as I understood here, the raw type value was saved directly into the
> exchange body, however I wanted hear if there are any recommendation on the
> format when the data being saved into the exchange body message.
>
> Thank you,
> Omar



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to