It appears that the difference lies in the fact that my maven config was
running version 6.1.4 of Jetty, while I was using version 6.1.5 in my IDE
debug session. When I downgraded to Jetty 6.1.4, the call made by the
_amq.js file returned immediately with an empty XML response.
With that said, I'm not sure which is the desired behavior. Perhaps GregW
can weigh in here. I'm not exactly sure why _amq.js is set up to invoke:
new Ajax.Request(amq.uri, {
method: 'get',
parameters: 'timeout=0',
onSuccess: amq._pollHandler
});
Why a hard-coded timeout=0?
Jetty 6.1.5 treats continuation.suspend(0) as an indefinite suspend; at
least until there is a message to send. For some reason in Jetty 6.1.4,
continuation.suspend(0) resumes immediately.
Any light that can be shed on the 'timeout=0' and the differences in how
Jetty handles it would be appreciated.
--
View this message in context:
http://www.nabble.com/ActiveMQ%2C-AJAX-and-polling-timeout-value-tf4337238s2354.html#a12360913
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.