[
https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Dean updated AMQ-3094:
---------------------------
Attachment: AjaxTest-output.txt
include-commons-httpclient-in-pom-xml.patch
AjaxTest.java
Attached test case does the following:
* publishes 3 messages to queue://test
* subscribes to queue://test using an http POST to the AjaxServlet
* polls for messages
The results of the test are inconsistent. Sometimes the client receives all
messages, sometimes the client receives 0 messages. (See attached test output
in AjaxTest-output.txt.) These results are not consistent with what I'm seeing
in JavaScript testing, where I always seem to receive at least one message, but
still provide some documentation for the issue.
> ajax client does not receive all messages
> -----------------------------------------
>
> Key: AMQ-3094
> URL: https://issues.apache.org/jira/browse/AMQ-3094
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 5.4.2
> Environment: OSX 10.6 on MacBook Pro
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
> Reporter: Alex Dean
> Attachments: AjaxTest-output.txt, AjaxTest.java, chat-send.html,
> include-commons-httpclient-in-pom-xml.patch
>
>
> Not all messages written to a destination are delivered to an ajax client.
> This seems particularly true if more than 1 message should be returned to a
> client at once. Often, if 5 messages are available, only the first 1 is
> actually returned in the <ajax-response> XML. The other 4 are lost.
> Steps to reproduce:
> * Place the attached chat-sent.html in activemq/webapps/demo/ (or in
> activemq-trunk/activemq-web-demo/src/main/webapp in an svn working copy).
> * Start ActiveMQ.
> * Browse to http://localhost:8161/demo/chat.html & join the chat room.
> * In a new window, browse to http://localhost:8161/demo/chat-send.html
> chat-send.html will send 5 message to topic://CHAT.DEMO. Only 1 (or
> sometimes 2) messages will be received by the original browser window which
> is subscribed to the topic. The activemq web admin will verify that 5
> messages were actually sent.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.