Great… Thanks a lot Anil… it worked
Just one thing… so apache.nms has to be at 2.0.0 but apache.nms.activeMQ has to be higher than 2.0.0… because when i set both at 2.0.0… code was just not executing, it was stuck… tried multiple times, but code would never finish execution… So tried setting apache.nms.activeMQ package version at 2.0.1, 2.1.1 etc… it worked
Again thanks a lot Anil