Custom JMS property which embeds routing key to the message.
When a message is being sent to the DLC by some means, the user/admin can select messages and redirect them to a different client. In this case, at time the client requires to know the original destination to which the message was publish to.
So from andes-client side, we are embedding the routing key to a JMS property of the message. The embedding is enabled only when “AndesSetRoutingKey” system property is set to a non-null value(any value other than null) from the publisher client side. When the mentioned system property is set, each message will have a JMS property of type string with name “JMS_ANDES_ROUTING_KEY” which will contain the routing key.
Enabling the JMS property(at publisher client) :
Getting the property through a JMS message :
System.out.println("PROP:" + message.getStringProperty("JMS_ANDES_ROUTING_KEY"));