activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: AjaxServlet on Tomcat
Date Thu, 16 Aug 2012 11:33:44 GMT
It's be a great blog post to summarize all this ;)

Regards
-- 
Dejan Bosanac
Senior Software Engineer | FuseSource Corp.
dejanb@fusesource.com | fusesource.com
skype: dejan.bosanac | twitter: @dejanb
blog: http://www.nighttale.net
ActiveMQ in Action: http://www.manning.com/snyder/


On Tue, Aug 14, 2012 at 8:58 PM, hexaplus <dehmlowm@gmail.com> wrote:
> 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.

Mime
View raw message