You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Alex Dean (JIRA)" <ji...@apache.org> on 2010/12/17 19:30:00 UTC

[jira] Created: (AMQ-3094) ajax client does not receive all messages

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


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.


[jira] Resolved: (AMQ-3094) ajax client does not receive all messages

Posted by "Dejan Bosanac (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dejan Bosanac resolved AMQ-3094.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 5.5.0
         Assignee: Dejan Bosanac

Fixed with svn revision 1052259.

The problem was that messages received between POST and GET calls were ignored. That should be fixed now. I modified a provided test a bit to demonstrate this issue every time.

Thanks for the great work!

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: AjaxTest-output.txt, AjaxTest.java, chat-send.html, include-commons-httpclient-in-pom-xml.patch, write_message_response_debugging.patch, write_message_response_debugging_output.txt
>
>
> 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment:     (was: test_shows_that_ajax_client_misses_messages_which_arrive_while_poll_is_in_progress.patch)

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.patch, 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment: all_messages_are_delivered_to_ajax_clients.patch

Patch will allow an ajax client to receive all messages.  Several other tests are included for previously-untested ajax code.

The following tests fail w/o the patch:
  testAjaxClientReceivesMessagesWhichAreSentToQueueWhileClientIsPolling
  testAjaxClientReceivesMessagesWhichAreSentToTopicWhileClientIsPolling
  testStompMessagesAreReceivedByAjaxClient

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.patch, 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment: write_message_response_debugging_output.txt
                write_message_response_debugging.patch

I added 1 debugging statement to MessageListenerServlet.writeMessageResponse.  (See attached patch & sample output.)  The output shows that several individual messages sent from another web client are contained in properties of this single ActiveMQTextMessage.  This seems very likely to be the root cause of the problem.

Is this normal behavior, and we need to search all properties of a TextMessage when writing a response to a client?  Or is it that we need to send messages differently so each 'send' POST actually creates a distinct TextMessage?

> 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, write_message_response_debugging.patch, write_message_response_debugging_output.txt
>
>
> 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment: chat-send.html

Test file which publishes 5 messages to topic://CHAT.DEMO.

> 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: chat-send.html
>
>
> 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ 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-notes.txt
                AjaxTest-output-no-eof-exception.txt
                AjaxTest-output-eof-exception.txt

Sample test output showing the presence/absence of the EofException I noted.

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: AjaxTest-output-eof-exception.txt, AjaxTest-output-no-eof-exception.txt, AjaxTest-output-notes.txt, AjaxTest-output.txt, AjaxTest.java, chat-send.html, include-commons-httpclient-in-pom-xml.patch, test_shows_that_ajax_client_misses_messages_which_arrive_while_poll_is_in_progress.patch, write_message_response_debugging.patch, write_message_response_debugging_output.txt
>
>
> 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.


[jira] Resolved: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean resolved AMQ-3094.
----------------------------

    Resolution: Fixed

Resolved in svn revision 1064725.

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.2.patch, all_messages_are_delivered_to_ajax_clients.patch, 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment:     (was: all_messages_are_delivered_to_ajax_clients.2.patch)

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.2.patch, all_messages_are_delivered_to_ajax_clients.patch, 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.


[jira] Reopened: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean reopened AMQ-3094:
----------------------------


Dejan: Take a look at the message properties in https://issues.apache.org/jira/secure/attachment/12466851/write_message_response_debugging_output.txt.  There are four messages here, but only 1 of them gets delivered.

The interesting bits are these:
  message=<message type="chat" from="test-user">message two</message>
  text = <message type="chat" from="test-user">message five</message>
  destination = topic://CHAT.DEMO
  m1=<message type="chat" from="test-user">message three</message>
  m2=<message type="chat" from="test-user">message four</message>
  m3=<message type="chat" from="test-user">message five</message>
  t1=send
  t3=send
  t2=send
  d1=topic://CHAT.DEMO
  d2=topic://CHAT.DEMO
  d3=topic://CHAT.DEMO

When an ajax client sends many messages in a short amount of time, they are then delivered to other clients in a single ActiveMQTextMessage.  writeMessageResponse() doesn't handle this properly, and only delivers one of the messages to a subscriber.

I'm not sure if this is a problem on the sending or receiving side.  (Is it legitimate to have multiple messages piled into a single ActiveMQTextMessage like this?)  I agree the junit test now passes, but I don't think the issue is resolved yet.  I'll work on getting some more tests created which reproduce this issue.  For now, you should be able to reproduce it using the chat-send.html script I've already attached to the ticket.

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: AjaxTest-output.txt, AjaxTest.java, chat-send.html, include-commons-httpclient-in-pom-xml.patch, write_message_response_debugging.patch, write_message_response_debugging_output.txt
>
>
> 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment: test_shows_that_ajax_client_misses_messages_which_arrive_while_poll_is_in_progress.patch

Attached test shows that an ajax client will miss messages which arrive while an ajax poll request is in progress.

This test uses org.eclipse.jetty.client.HttpClient rather than org.apache.commons.httpclient.HttpClient.  I was able to get session handling working with the Jetty HttpClient, and it's much better at async requests than the commons HttpClient.

I sometimes see an org.eclipse.jetty.io.EofException in the poll request.  The cause is unclear.  Sometimes the error disappears simply by re-running the test.  Sometimes doing a recompile of activemq-trunk/activemq-web and then re-running the test causes the error to disappear.

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: AjaxTest-output-eof-exception.txt, AjaxTest-output-no-eof-exception.txt, AjaxTest-output-notes.txt, AjaxTest-output.txt, AjaxTest.java, chat-send.html, include-commons-httpclient-in-pom-xml.patch, test_shows_that_ajax_client_misses_messages_which_arrive_while_poll_is_in_progress.patch, write_message_response_debugging.patch, write_message_response_debugging_output.txt
>
>
> 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment: all_messages_are_delivered_to_ajax_clients.2.patch

Updated my svn working copy & re-generated patch due to request from Jeff Rose. Now based on trunk r1057227.  Previous version of this patch (w/ identical file name) was missing 1 test which should not have been omitted.

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.2.patch, all_messages_are_delivered_to_ajax_clients.patch, 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment:     (was: AjaxTest-output.txt)

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.patch, 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment:     (was: AjaxTest-output-eof-exception.txt)

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.patch, 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment:     (was: write_message_response_debugging.patch)

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.patch, 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment:     (was: write_message_response_debugging_output.txt)

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.patch, 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment: all_messages_are_delivered_to_ajax_clients.2.patch

Updated my svn working copy & re-generated patch due to request from Jeff Rose.  Now based on trunk r1057227.

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.2.patch, all_messages_are_delivered_to_ajax_clients.patch, 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment:     (was: AjaxTest.java)

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.patch, 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.


[jira] Commented: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972666#action_12972666 ] 

Alex Dean commented on AMQ-3094:
--------------------------------

In AjaxTest-output.txt, also note that for the test runs where no messages are received also show 2 GET requests being made.  The test run where all messages are received shows only a single GET request.  I'm not sure what that means, given that the test has only a single GET.

> 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment:     (was: AjaxTest-output-notes.txt)

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.patch, 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.


[jira] Updated: (AMQ-3094) ajax client does not receive all messages

Posted by "Alex Dean (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Dean updated AMQ-3094:
---------------------------

    Attachment:     (was: AjaxTest-output-no-eof-exception.txt)

> 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
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>
>         Attachments: all_messages_are_delivered_to_ajax_clients.patch, 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.