But I am getting exception as username null or password is invalid.
So, I defined the activemq bean in my blueprint itself, everything worked fine. Since I have around 40 blueprints in my projects which access the same broker, it doesnt sound good to repeat the activemq bean definition in all the bluprints. It would be ideal to define broker bean in activemq.xml for once and just access the topic in all the blueprints I need.
So what am I missing here? Should we create exact replica of activemq-broker.xml as some OSGI service and refer in all the 40 blueprints??