JMS headers not visible in a Streamsets Pipeline

时间:2018-10-17 12:51:47

标签: streamsets

I am using a JMS origin to connect to ActiveMq. I am trying to access the correlationId and other headers from the messages. I can view these messages from my Java JMS consumer/listener (see below), but not from Streamsets (docker version). Does anyone know how to access jms headers from Streamsets?

Jms headers from java app...

{jms_redelivered=false, jms_deliveryMode=2,jms_destination=topic://VirtualTopic.Topic1, 
jms_correlationId=45aaf2b7-bc11-4988-8b22-eddec473f7bb, jms_priority=4,
xxx=hello world, id=90f18473-4b68-5aa5-3715-7580f539de9d, jms_timestamp=1539772911306, 
jms_expiration=0, jms_messageId=xxxx, timestamp=1539772911319}

In Streamsets preview mode I have selected 'Show Record/Field Header' and the headers are not there. I also programmatically try to access them in an expression evalator using the following syntax:

${record:attribute('jms_correlationId')} 

0 个答案:

没有答案