码迷,mamicode.com
首页 > Web开发 > 详细

js调用activeMQ

时间:2017-08-17 17:15:26      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:ted   js调用   顺序   port   cli   ajax   message   messages   star   

1:引入脚本的顺序.

2:兼容tomcat7+  

 <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>
    </servlet>
    <servlet-mapping>  
    <servlet-name>AjaxServlet</servlet-name>
    <url-pattern>/amq/*</url-pattern>  
    </servlet-mapping>  
    <filter>  
    <filter-name>session</filter-name>  
    <filter-class>org.eclipse.jetty.continuation.ContinuationFilter</filter-class>  
     <async-supported>true</async-supported>
</filter>  
<filter-mapping>  
    <filter-name>session</filter-name>  
    <url-pattern>/*</url-pattern>  
</filter-mapping>

3:跨域问题.

js调用activeMQ

标签:ted   js调用   顺序   port   cli   ajax   message   messages   star   

原文地址:http://www.cnblogs.com/fengcai/p/7382599.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!