How to Maintain Sequence in Messaging

I need solution for sequence messaging which is like without changing message order which received by Broker, i need send same order to the partner. My IS configured in cluster and partner server is not available also i need to send message with order once partner server become available.

Also explain Using JMS messaging shell we implement, or else any other solution

Simply set the trigger property to be serial. The messages will be processed in the same order, one at a time, as they were received by Broker–assuming that the messages are published by a single publisher.

When the partner is down, suspend the trigger.

IS cluster is immaterial, more or less.

Please review the documentation.

Additional information:

The queue definition should be set to “Shared State Order=Publisher” in this case the queue will be forwarding the messages in the right order to the trigger.