java实现MQ标准API
MQ标准API
IDEA创建Maven工程
pom.xml
<!-- activemq所需要的jarb包-->
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-all</artifactId>
<version>5.15.9</version>
</dependency>
<dependency>
<groupId>org.apache.xbean</groupId>
<artifactId>xbean-spring</artifactId>
<version>3.16</version>
</dependency>
JMS编码整体架构
session 创建一个消息,向左是消息的生产者,向右是消息的接受者,而Session下面的Msg就是规定的消息发送的格式。Dastination(目的地)