You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2023/01/13 14:16:18 UTC

[GitHub] [camel-kafka-connector] Alexander-ac opened a new issue, #1501: JMS Header Properties with Camel ActiveMQ Sink Connector

Alexander-ac opened a new issue, #1501:
URL: https://github.com/apache/camel-kafka-connector/issues/1501

   Hello all, 
   we are trying out camel activemq **sink** connector.
   Everything works well so far, except for setting JMS message headers.
   
   The scenario looks like this: we have a sink connector that takes a message from the Kafka topic and puts it in a queue of the Apache ActiveMQ broker. The message contains Kafka custom headers. It works so far. 
   Now we want to set JMS Properties over Kafka Headers. (f.e. JMSExpiration, .JMSMessageID) 
   Strangely enough, that doesn't work! The JMS things are sorted out or ignored.
   
   Hence my question: how can we influence the JMS header properties or set these values.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] JMS Header Properties with Camel ActiveMQ Sink Connector [camel-kafka-connector]

Posted by "oscerd (via GitHub) via commits" <co...@camel.apache.org>.
oscerd closed issue #1501: JMS Header Properties with Camel ActiveMQ Sink Connector
URL: https://github.com/apache/camel-kafka-connector/issues/1501


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] JMS Header Properties with Camel ActiveMQ Sink Connector [camel-kafka-connector]

Posted by "oscerd (via GitHub) via commits" <co...@camel.apache.org>.
oscerd commented on issue #1501:
URL: https://github.com/apache/camel-kafka-connector/issues/1501#issuecomment-6632198107

   Sorry this went unanswered. Camel's JMS component never takes `JMSMessageID`, `JMSTimestamp` or `JMSRedelivered` from headers, because the JMS provider assigns them when the message is sent, while `JMSExpiration`, `JMSPriority` and `JMSDeliveryMode` are only used for the send when the `preserveMessageQos` option is enabled (`JMSExpiration` is an absolute time in epoch milliseconds). The ActiveMQ (Classic) connector was removed when camel-kafka-connector moved to Camel 4; with the 4.22.x JMS sinks (camel-jms-apache-artemis-sink, camel-jms-pooled-apache-artemis-sink or camel-jms-amqp-10-sink) you can send Kafka headers such as `CamelHeader.JMSPriority` or `CamelHeader.JMSExpiration` and set `camel.component.jms.preserveMessageQos=true` in the connector configuration. Closing this as answered; if it does not work on 4.22.x, please open a new issue with your configuration and the headers you send.
   
   ---
   _Claude Code on behalf of Andrea Cosentino_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org