JMS Delivery Key Custom Sorting
Good day people!
I have several messages that I will put in the JMS queue, each message has sequence ID which it used as priority which one need to be enqueued first (lowest sequence ID on top priority).
I do some small POC and here what I get :
Preparation
1. Create one Destination Key with JMSCorrelationID as the key and Key Type Int and Sort as Ascending
2. Create one pipeline + log + sleep 10s, connected to proxy service to dequeue the message
3. Create work manager with max thread 1 and assigned to pipeline no 2
4. Create one more pipeline for enqueue and assign sequence ID to JMSCorrelationID