Quantcast
Channel: Spring Community Forums - JMS
Viewing all articles
Browse latest Browse all 51

SimpleMessageConverter and default conversion of JMSMessage and SpringIntMessage

$
0
0
Here is piece of XML config:
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" />

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 !

Viewing all articles
Browse latest Browse all 51

Trending Articles