ActiveMQ-demo实例代码:/**生产者启动程序,并发送消息给amq服务器(broker)*/publicclassProducer{/***@paramargs*@throwsException*/publicstaticvoidmain(String[]args)throwsException{//加载spring配置ApplicationContextac=newClassPathXmlApplicationContext("spring/applicationContext-jms-producer.xml");//获取生产者