mercredi 2 novembre 2016

Need to define AMQ AjaxSerlet in a web page that does not have a web.xml file

I am using active mq as my jms provider and a local web page I want to use AJAX calls to try read/write to active mq. Right now this web page that does not have a web.xml file since it just a local web page. It uses a node.js configuration file, that I run to start the page. I am trying to do some simple active mq example to get things working. http://ift.tt/1mpSPcI The only thing I am missing is the 'AMQ AjaxServlet needs to be installed'. From what I have seen is that this is usually done in the web.xml file. But I do not have one, so are there other ways of adding this servlets? If I have to add web.xml file are there any examples? Thanks

      <servlet>
    <servlet-name>AjaxServlet</servlet-name>
    <servlet-class>org.apache.activemq.web.AjaxServlet</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>AjaxServlet</servlet-name>
    <url-pattern>/amq/*</url-pattern>
  </servlet-mapping>




Aucun commentaire:

Enregistrer un commentaire