activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gul <>
Subject Re: AJAX Client Reconnect
Date Fri, 13 Jun 2008 06:00:08 GMT

hi Dan!!

i am using your latest updated amq.js file with cook's prototype file and
eliminate the amq_prototype_adapter.js.. the problem is that when i want to
call AjaxServlet with the following code 

Ajax.Request(uri, { method: 'post', postBody: body, onSuccess:

then the AjaxServlet does not get called? Could u plz tell me any solution?


Dan The Man wrote:
> Hi Jim,
> I am most concerned with the first type of failure, where the client
> has a problem with the network connection, but the server is still
> running properly. What I did was take your modified amq.js (from link
> in my previous message) and then added the following to line 111 in
> pollErrorHandler() :
> setTimeout(function() { sendPoll(); }, pollErrorDelay);
> That seems to work well enough, but then I am very new to the whole
> AJAX thing, and there is probably a better way. I was hoping that some
> sort of retry logic would make it into the head so that I can use the
> standard javascript files (makes maintenance a lot easier).
>    --Dan
> On 10/13/07, chago <> wrote:
>> One is when the webserver closes the connection due to restart or network
>> problem. In this case, the assumption is that the ActiveMQ server is
>> still
>> running properly and the connection between the browser and the servlet
>> needs to be reestablished. Since the client discovers the disconnect when

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message