前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >activeMQ 在ssm中的使用-版本 5.14.4

activeMQ 在ssm中的使用-版本 5.14.4

作者头像
爱明依
发布2019-03-12 15:16:07
9800
发布2019-03-12 15:16:07
举报
文章被收录于专栏:爱明依爱明依

一jar依赖:

        <!-- activemq配置开始 -->         <dependency>             <groupId>org.eclipse.jetty</groupId>             <artifactId>jetty-continuation</artifactId>             <version>${jetty.version}</version>         </dependency>         <!-- https://mvnrepository.com/artifact/org.apache.activemq/activemq-all -->         <dependency>             <groupId>org.apache.activemq</groupId>             <artifactId>activemq-all</artifactId>             <version>${activemq.version}</version>         </dependency>         <!-- https://mvnrepository.com/artifact/org.apache.activemq/activemq-broker -->         <dependency>             <groupId>org.apache.activemq</groupId>             <artifactId>activemq-broker</artifactId>             <version>${activemq.version}</version>         </dependency>         <!-- https://mvnrepository.com/artifact/org.apache.activemq/activemq-client -->         <dependency>             <groupId>org.apache.activemq</groupId>             <artifactId>activemq-client</artifactId>             <version>${activemq.version}</version>         </dependency>         <!-- https://mvnrepository.com/artifact/org.apache.activemq/activemq-web -->         <dependency>             <groupId>org.apache.activemq</groupId>             <artifactId>activemq-web</artifactId>             <version>${activemq.version}</version>         </dependency>         <!--geronimo.specs-->         <!-- https://mvnrepository.com/artifact/org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec -->         <dependency>             <groupId>org.apache.geronimo.specs</groupId>             <artifactId>geronimo-j2ee-management_1.1_spec</artifactId>             <version>${geronimo.specs.version}</version>         </dependency>         <!-- https://mvnrepository.com/artifact/org.apache.geronimo.specs/geronimo-jms_1.1_spec -->         <dependency>             <groupId>org.apache.geronimo.specs</groupId>             <artifactId>geronimo-jms_1.1_spec</artifactId>             <version>${geronimo.specs.version}</version>         </dependency>         <!-- activemq配置结束 -->

二:web.xml 配置

<context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:/spring-context*.xml, classpath*:ActiveMQ*.xml

        </param-value> </context-param>

  <context-param>         <param-name>org.apache.activemq.brokerURL</param-name>         <param-value>tcp://115.28.133.36:61616</param-value><!-- 与conf/activemq.xml中的地址一致 -->     </context-param>

 <servlet>         <servlet-name>AjaxServlet</servlet-name>         <servlet-class>org.apache.activemq.web.AjaxServlet</servlet-class>         <load-on-startup>1</load-on-startup>         <async-supported>true</async-supported><!-- 异步执行 -->     </servlet>     <servlet>         <servlet-name>MessageServlet</servlet-name>         <servlet-class>org.apache.activemq.web.MessageServlet</servlet-class>         <load-on-startup>1</load-on-startup>         <async-supported>true</async-supported><!-- 异步执行 -->     </servlet>     <servlet>         <servlet-name>QueueBrowseServlet</servlet-name>         <servlet-class>org.apache.activemq.web.QueueBrowseServlet</servlet-class>         <async-supported>true</async-supported><!-- 异步执行 -->     </servlet>     <servlet-mapping>         <servlet-name>AjaxServlet</servlet-name>         <url-pattern>/a/amq/*</url-pattern>     </servlet-mapping>     <servlet-mapping>         <servlet-name>MessageServlet</servlet-name>         <url-pattern>/message/*</url-pattern>     </servlet-mapping>     <servlet-mapping>         <servlet-name>QueueBrowseServlet</servlet-name>         <url-pattern>/queueBrowse/*</url-pattern>     </servlet-mapping>

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017年08月07日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档