activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From go canal <goca...@yahoo.com>
Subject timeout is not being used ?
Date Thu, 20 May 2010 00:43:01 GMT
Hi,
I have a very basic configuration and did a quick test. 
I am using Spring 3.0, ActiveMQ 5.4, Jetty 7.0.2. 

web.xml
======
<servlet>
<servlet-name>SpringAMQ</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/spring/app-config.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>SpringAMQ</servlet-name>
<url-pattern>/app/*</url-pattern>
</servlet-mapping>

  <!-- for ActiveMQ -->
  <context-param>
  <param-name>org.apache.activemq.brokerURL</param-name>
    <param-value>vm://localhost</param-value>
  </context-param>

  <context-param>
  <param-name>org.apache.activemq.embeddedBroker</param-name>
    <param-value>true</param-value>
  </context-param>
  <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>/app/amq/*</url-pattern>
  </servlet-mapping>

sample.jsp
========
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript" src="amq/amq.js"></script> 
<script type="text/javascript">amq.uri='amq';</script>

<title>Insert title here</title>
</head>
<body>
<h2>This is my page!</h2>
</body>
</html>

The jsp file only include ActiveMQ, did not do anything. 

When I display this page, it shows different issues in different browsers:
 - IE 
    stackoverflow
 - Chrome
    can not call method 'getElementsbyTagName' of null
 - FireFox
   FireBug shows that the the client keeps sending request to the server without waiting.

the server log shows:
08:40:10,718 DEBUG MessageListenerServlet:238 - GET client=org.apache.activemq.web.WebClient@1b94ea2
session=kxu5qo9f1nnk uri=/SpringAMQ/app/amq query=null
08:40:10,718 DEBUG MessageListenerServlet:263 - doMessage timeout=25000

25sec is the default timeout value. Wondering why there is no-wait and what error in Chrome
mean ?
thanks,
canal



      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message