# Prevent browser from hanging

**URL:** <https://techcommunity.softwareag.com/t/prevent-browser-from-hanging/58690>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Service-Orchestrator\
**Created:** [December 14, 2004, 7:46am UTC](https://techcommunity.softwareag.com/t/prevent-browser-from-hanging/58690 "2004-12-14T07:46:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prince1](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@Prince1](https://techcommunity.softwareag.com/u/Prince1)\
**Post date:** [December 14, 2004, 7:46am UTC](https://techcommunity.softwareag.com/t/prevent-browser-from-hanging/58690/1 "2004-12-14T07:46:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mike\_Bernat](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Mike\_Bernat](https://techcommunity.softwareag.com/u/Mike_Bernat)\
**Post date:** [December 14, 2004, 6:25pm UTC](https://techcommunity.softwareag.com/t/prevent-browser-from-hanging/58690/2 "2004-12-14T18:25:24Z")

</div>

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 (xbd.original.message.id) which can be used to query the persistent status to track the results of the message.   
  
Hope this helps.  
  
Best regards,  
 Mike

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/prevent-browser-from-hanging/58690/3 "2021-04-02T14:39:24Z")

</div>

Closed on April 2, 2021, 2:39pm UTC


