Setting Up Authentication in ActiveMQ

By default ActiveMQ broker is not Authentication enabled. I have configured embedded ActiveMQ Broker for Authentication with JMS and since it was bit confusing, I thought to put a note in here.

Authentication in ActiveMQ works with Jaas plugins, following is the sample code, configs I have used for this tryout.

For further references: