Hi Hemika,
When setting a routing key to a message I have used
"System.setProperty("AndesSetRoutingKey", "1");" as described in the
documentation [1]. As I observed any value set for the "AndesSetRoutingKey"
is considered as valid and the routing key property is set to the message.
May I know whether there is any validation applied to this property? I have
set an empty value as "System.setProperty("AndesSetRoutingKey", "");" ,
this is also considered as valid and the "JMS_ANDES_ROUTING_KEY" property
set to the correct queue destination. When I passed a null value to the
property it fails with NullPointerException. According to [2] 'null' value
can not be set to a property.
[1] https://docs.wso2.com/display/MB320/Setting+the+Routing+Key+for+Messages
[2]
http://stackoverflow.com/questions/4323995/set-system-propery-to-null-in-java
Thank You
--
*Sashika WijesingheSoftware Engineer - QA Team*
Mobile : +94 (0) 774537487
[email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev