Hi,
I need to send message from ESB Process to SonicMQ queue and wait for response. I'm trying to use Dispatch service, but it seems that message being delivered is always MultipartMessage. Is there possibility to send message as Text- or XmlMessage?
Thanks,
Romet
Hi Romet,
Yes, you can send Text or XmlMessage or Multipart message to the ESB Process which has Dispatch service step. Here the ESB Process will treat or change the input message as a multipart message (i.e., in this case ESB Process makes the text message or xml message as part0 into the Multipart message) even though you send a text message or xml message.
Thanks
Hari
I don't want to send message to ESB Process. I want to sent message from ESB process to Sonic MQ queue, an external process will consume this message and will send response message back. The problem is that this external process should consume Text- or XmlMessage and not Sonic specific MultipartMessage.
Have read several discussions about it and it seems that when there's only one part in Multipart message, ESB should convert it to simple message, but it seems like Dispatcher Service always sends MultipartMessage.
Hi Romet,
If you have a message with single part and you want to prevent it from being sent out as a multipart JMS message, then set the JMS_SonicMQ_XQ.isMultipart header to false
You can use message mapping on the dispatch step to set this header.
Thanks
-Mahesh
Thanks, this solution worked.