【实例简介】
activemq整合spring的实例代码,tomcat下亲测可正常运行,选择其它服务器的直接移植即可。内涵运行的所有jar包,无需再次下载
【实例截图】
【核心代码】
SpringActivemq
└── SpringActivemq
└── ActiveMQSpringDemo
├── build
│ └── classes
│ ├── ActiveMQ.xml
│ ├── applicationContext.xml
│ ├── com
│ │ └── tgb
│ │ └── SpringActivemq
│ │ ├── controller
│ │ │ └── ActivemqController.class
│ │ └── mq
│ │ ├── consumer
│ │ │ ├── queue
│ │ │ │ ├── QueueReceiver1.class
│ │ │ │ └── QueueReceiver2.class
│ │ │ └── topic
│ │ │ ├── TopicReceiver1.class
│ │ │ └── TopicReceiver2.class
│ │ └── producer
│ │ ├── queue
│ │ │ ├── QueueSender$1.class
│ │ │ └── QueueSender.class
│ │ └── topic
│ │ ├── TopicSender$1.class
│ │ └── TopicSender.class
│ ├── log4j.properties
│ └── spring-mvc.xml
├── src
│ ├── ActiveMQ.xml
│ ├── applicationContext.xml
│ ├── com
│ │ └── tgb
│ │ └── SpringActivemq
│ │ ├── controller
│ │ │ └── ActivemqController.java
│ │ └── mq
│ │ ├── consumer
│ │ │ ├── queue
│ │ │ │ ├── QueueReceiver1.java
│ │ │ │ └── QueueReceiver2.java
│ │ │ └── topic
│ │ │ ├── TopicReceiver1.java
│ │ │ └── TopicReceiver2.java
│ │ └── producer
│ │ ├── queue
│ │ │ └── QueueSender.java
│ │ └── topic
│ │ └── TopicSender.java
│ ├── log4j.properties
│ └── spring-mvc.xml
└── WebContent
├── index.jsp
├── META-INF
│ └── MANIFEST.MF
├── note.txt
├── resources
│ └── jquery-1.11.0.min.js
└── WEB-INF
├── lib
│ ├── activemq-all-5.11.1.jar
│ ├── commons-logging.jar
│ ├── log4j-1.2.17.jar
│ ├── spring-aop-4.1.0.RELEASE.jar
│ ├── spring-aspects-4.1.0.RELEASE.jar
│ ├── spring-beans-4.1.0.RELEASE.jar
│ ├── spring-context-4.1.0.RELEASE.jar
│ ├── spring-context-support-4.1.0.RELEASE.jar
│ ├── spring-core-4.1.0.RELEASE.jar
│ ├── spring-expression-4.1.0.RELEASE.jar
│ ├── spring-jms-4.1.0.RELEASE.jar
│ ├── spring-messaging-4.1.0.RELEASE.jar
│ ├── spring-tx-4.1.0.RELEASE.jar
│ ├── spring-web-4.1.0.RELEASE.jar
│ ├── spring-webmvc-4.1.0.RELEASE.jar
│ └── xbean-spring-4.4.jar
└── web.xml
32 directories, 45 files