The DefaultConsumerMarshaler you are using assumes that the content of the
message is XML and that causes an error.

You can extend DefaultConsumerMarshaler and override the populateMessage
method and put the the fixed length to xml conversion logic.

Once you do so declare the new marshaler:


<bean id="customJmsConsumerMarshaler"
class="net.guilhelm.CustomJmsConsumerMarshaler"> 

<jms:endpoint service="tut:mq2file" 
                endpoint="mq" 
                targetService="tut:mq2file" 
                role="consumer" 
                targetEndpoint="sender" 
                destinationStyle="queue" 
                jmsProviderDestinationName="QUEUE_NAME" 
                connectionFactory="#mqConnectionFactory"
                marshaler="#customJmsConsumerMarshaler"
                defaultMep="http://www.w3.org/2004/08/wsdl/in-only"; /> 



Hope that helps !!!

-----
Ioannis Canellos
-- 
View this message in context: 
http://old.nabble.com/servicemix-jms-consumer-with-non-xml-messages-tp28167771p28267869.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to