Hi Hemika, Thanks for the explanation.
Regards, Sashika On Wed, Sep 7, 2016 at 8:42 AM, Hemika Kodikara <[email protected]> wrote: > Hi Sashika, > > The feature will be enabled only when a value is set to the property. > > No validation occurs here and also it removes the chance for user error on > setting the property to an invalid value. By default the feature is not > enabled. To enable we have to set a value to the property. > > This behavior can be found for "amqj.protocol.logging.level" property[1] > as well in qpid. > > [1] - https://cwiki.apache.org/confluence/display/qpid/System+Properties# > SystemProperties-amqj.protocol.logging.level > > Regards, > Hemika > > Hemika Kodikara > Software Engineer > WSO2 Inc. > lean . enterprise . middleware > http://wso2.com > > Mobile : +94777688882 > > On Tue, Sep 6, 2016 at 2:13 AM, Sashika Wijesinghe <[email protected]> > wrote: > >> 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-pr >> opery-to-null-in-java >> >> Thank You >> -- >> >> *Sashika WijesingheSoftware Engineer - QA Team* >> Mobile : +94 (0) 774537487 >> [email protected] >> > > -- *Sashika WijesingheSoftware Engineer - QA Team* Mobile : +94 (0) 774537487 [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
