Prevent browser from hanging

Just a simple question, how to prevent my browser from hanging after I have invoked a Mediator sequence? That is very annoying if the sequence is going to take very long to complete.


Hi Prince,

The easiest way to send a long running sequence is by using HTTP PUT instead of POST. The PUT will return to the client/browser as soon as the message has been accepted by one of the Component Factories.

However, since the client/browser session is now complete, there is no direct way for the sequence to respond back to the client. So you need to come up with a way to check the status and result of the message. Status persistence is a good mechanism for this. Among the header properties returned in the Mediator’s unique message id ( which can be used to query the persistent status to track the results of the message.

Hope this helps.

Best regards,