Here is piece of XML config:
Application reads file, splits it to strings, posts Strings to ActiveMQ, then reads them, converts to my custom objects with transformer.
My guess was, that in the channel "inboundStringProcessingChannel" i'll get usual spring message (SimpleMessageConverter supposed to convert it to text/object).
But actually, headers still contain JMS related information.
Because of that, transformer does NOT post message to "inboundOscarSaleDataChannel" and flow simply stucks.
Could you please explain where I'm missunderstanding the conversion flow ?
Thanks !
Code:
<splitter id="fileToStringsSplitter" input-channel="inboundFileChannel" output-channel="inboundStringChannel" ref="inboundFileToStringsSplitter" />
<jms:outbound-channel-adapter id="outboundOscarRowsJmsAdapter" destination="oscarRowsQueue" channel="inboundStringChannel" />
<jms:message-driven-channel-adapter id="inboundOscarRowChannelAdapter" destination="oscarRowsQueue" channel="inboundStringProcessingChannel" />
<transformer id="stringToOscarSaleDataTransformer" input-channel="inboundStringProcessingChannel" output-channel="inboundOscarSaleDataChannel" ref="inboundStringToOscarSaleDataTransformer" />
My guess was, that in the channel "inboundStringProcessingChannel" i'll get usual spring message (SimpleMessageConverter supposed to convert it to text/object).
But actually, headers still contain JMS related information.
Because of that, transformer does NOT post message to "inboundOscarSaleDataChannel" and flow simply stucks.
Could you please explain where I'm missunderstanding the conversion flow ?
Thanks !