Details
-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 2.15.2
-
Fix Version/s: 2.17.0
-
Component/s: camel-sjms
-
Labels:None
-
Estimated Complexity:Unknown
Description
The Camel-sjms component doesn't treat messages being sent to the InOnlyProducer equally to the ones sent to the InOutProducer.
As far as i can tell, the InOnlyProducer handles messages the correct way, by splitting up the ArrayList<BatchMessage<...>> into individual messages, which it then sends. The InOutProducer just calls "JmsMessageHelper.createMessage" with the ArrayList<BatchMessage<...>> payload.
When used with WebSphere MQ, the InOutProducer causes an exception:
JMSCC0083: An incorrect object of type 'org.apache.camel.component.sjms.BatchMessage' was provided.