Unable to serialize XML format in JMS Sink Connect

Hi,

We are using JMS Connect to consume XML messages and produce it to the kafka topics using avro format to serialize in topics. While consuming the same XML message from the topic to a JMS queue using JMS sink connect the XML message is being wrapped in a JSON format along with JSON headers. Is there any way to serialize the XML message in XML format alone ?

PFB the reference:
Posted : (Expected Result)

(<Root>
<Child>
<Hello>hello</Hello>
</Child>
</Root>)

Received :

{"messageID":"ID:<755895.1644562443183.0>","messageType":"text","timestamp":1644562443183,"deliveryMode":2,"correlationID":null,"replyTo":null,"destination":{"destinationType":"topic","name":"com.bt.jms.module.orb2b.apb2bod1!bt.jms.topic.test1"},"redelivered":false,"type":null,"expiration":0,"priority":4,"properties":{"JMSXDeliveryCount":{"propertyType":"integer","boolean":null,"byte":null,"short":null,"integer":1,"long":null,"float":null,"double":null,"string":null,"bytes":null}},"bytes":null,"map":null,"text":"(<Root>
<Child>
<Hello>hello</Hello>
</Child>
</Root>)"}

Hi @Kameshwaran . The exact same message was posted by @Shahul_Hameed at Consuming with JMS Connectors causing format issues . I presume you work together.

Hi @vnadkarni, Yes we work together. Can you please help us here with the issue

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.