Hi I've been using AjaxServelt on tomcat for the last five years or so, I'm
currently using Tomcat 7.0.26 and active mq 5.5.1.
Works well with the exception of one problem I'll be posting in a minute
(problems shutting down).

My web.xml for my web app has:

  <context-param>
    <param-name>org.apache.activemq.brokerURL</param-name>
    <param-value>vm://localhost</param-value>
  </context-param>
....
  <servlet>
      <servlet-name>AjaxServlet</servlet-name>
      <servlet-class>org.apache.activemq.web.AjaxServlet</servlet-class>
      <init-param>
         <param-name>maximumReadTimeout</param-name>
         <param-value>120000</param-value>
      </init-param>
     <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>
  
  <servlet-mapping>
      <servlet-name>MessageServlet</servlet-name>
      <url-pattern>/message/*</url-pattern>
  </servlet-mapping>

In my myWebApp/WEB-INF/lib directory i have:
 activemq-all-5.5.1.jar
 activemq-web-5.5.1.jar
 camel-core-2.7.0.jar
 jetty-all-server-7.1.6.v20100715.jar
 log4j-1.2.14.jar
 slf4j-log4j12-1.5.11.jar
Sorry I don't have more of the details on why or how (its been a life time
since I implemented it).



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/AjaxServlet-on-Tomcat-tp3601798p4655123.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Reply via email to