sample code of ActiveMQ