Note that there are some explanatory texts on larger screens.

plurals
  1. POPractical value for concurrent-request-timeout parameter or options for avoiding concurrent access to conversation exception
    text
    copied!<p>In the Seam Reference Guide, one can find this paragraph:</p> <blockquote> <p>We can set a sensible default for the concurrent request timeout (in ms) in components.xml:</p> <pre><code>&lt;core:manager concurrent-request-timeout="500" /&gt; </code></pre> </blockquote> <p>However, we found that 500 ms is not nearly enough time for most of the cases we had to deal with, especially with the severe restriction seam places on conversation access.</p> <p>In our application we have a combination of page scoped ajax requests (triggered by various user actions), some global scoped polling notification logic (part of the header, so included in every page) and regular links that invoke actions and/or navigate to other pages.</p> <p>Therefore, we get the dreaded concurrent access to conversation exception way too often, even without any significant load on the site.</p> <p>After researching the options for quite a bit, we ended up bumping this value to several seconds (we're debating whether to bump it up to 10s), as none of the recommended solutions seemed able to solve our issue completely (even forcing a global queue for all the ajax requests would still leave us exposed to a user deciding to click a link right when one of our polling calls was in progress). And we'd much rather have the users wait for a second or two instead of getting an error page just because they clicked a link at the wrong moment.</p> <p>And now to the question: is there something obvious we're missing (like a way to allow concurrent access to conversations and taking care of the needed locking ourselves, for instance :)? How do people solve this problem (ajax requests mixed with user driven interaction) in seam? Disabling all the links on the page while ajax requests are in progress (as suggested by one blog page) is really not a viable option. </p> <p>Any other suggestions?</p> <p>TIA, Andrei</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload