How to send Multiple message to JMS Endpoint in Mule

Dhan Raj

In Mule, I have a requirement to split the request XML data and construct Multiple mule messages and post them to a JMS queue.

I have managed to split the message and have a list of Mule Message in my Java component. My question is, how do I pass the list of mule message to a JMS endpoint as individual message?

utechtzs

I would suggest using a foreach component. You can change the collection in case you save it to a flowVar.

<foreach doc:name="For Each" collection="#[payload]">
    <jms:outbound-endpoint doc:name="JMS" connector-ref="JMS" queue="myQueue"/>
</foreach>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

What's the class used by Mule to send JMS Message (Endpoint)

How to send multiple number of message to queue using jms

How to send message to JMS queue using javascript?

Mule consuming JMS topic message

Mule ESB: Setup JMS Endpoint for WMQ Queue

How to send message to multiple recipients?

How to send a jms message to activeMQ and decode it in javascript with mqttJS properly

How to send Message to particular Receiver using JMS Queue

How to send scheduled message to Azure Service Bus with JMS

How to send original message payload to jms error queue

How to make JMS message send to MQ to commit fully?

Apache Camel How to pass SOAP message from JMS queue to CXF endpoint

JMS - How do message selectors work with multiple queue and topic consumers?

How do I send multiple queries from one endpoint with Express?

How do I send a message to multiple processes

How to aggregate inbound JMS messages in mule

How to set a JMS poller with activemq in mule

Send message from MQ to EMS(JMS) queue

Camel ProducerTemplate send to a JMS message property

Send message to a JMS queue using Spring Boot

Is there a framework in apache spark to send message in a JMS queue?

Send a Message to JMS queue using java Swing

How to override default behavior of mule SFTP endpoint?

How to use special characters in password for mule endpoint

How to remove message payload on Mule?

how to send response to a sender from ESB before adding message to a jms queue

how do i send a message to a ActiveMQ using JMS Sender in wso2esb

How to attach a JWT to a JMS message?

Apache Camel send message JMS Consumer receives message