<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Sounds like you need a pdfbox box ;-)</div><div><br></div><div><br></div><div><br></div><div><br>Am 27.07.2017 um 09:42 schrieb Sabine Manaa <<a href="mailto:manaa.sabine@gmail.com">manaa.sabine@gmail.com</a>>:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div>when the report generation is invoked, the session is alive and I have a long session time.<br></div><div>So, it is unlikely that the session will expire. </div><div>If it does expire nevertheless, the user will not notice it (because he is logged out) and I will stop report generation if the session is not available.</div><div><br></div><div>Ramon, I tested your suggestion and with the session passed into the fork with the local variable, it works.</div><div><br></div><div>I was mislead by the method >>queueWorkAndExpireIn:session<wbr>: </div><div><br></div><div>This works</div><div><div>| theSession |</div><div>theSession := self session.</div><div>[ theSession dummyMethod ] queueWorkAndExpireIn: 25 seconds session: self session ]</div></div><div><br></div><div>and this works too:</div><div><div>| theSession |</div><div>theSession := self session.</div><div>[ theSession dummyMethod2 ] queueWork ]);</div></div><div><br></div><div>==>I don't understand for what the session parameter in >>queueWorkAndExpireIn:session<wbr>: is used.</div><div><br></div><div>But I can also use queueWork.</div><div><br></div><div>This/the smalltalk side seems to work all fine now with the ThreadPool. Thank you for this!</div><div><br></div><div>I also use an external program to </div><div>* merge multiple  PDFs into one </div><div>* and to generate pngs from pdfs for the preview</div><div>(<a href="https://pdfbox.apache.org" target="_top" rel="nofollow" link="external">https://pdfbox.apache.org</a>).</div><div><br></div><div>The remaining problem is, that I have many pdfbox calls which create a high load on the machine...</div><div>:-)</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><div><br></div><div><br></div><div><br></div><div> </div></div>


        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://forum.world.st/ThreadPool-with-Seaside-how-tp4956812p4957069.html">Re: ThreadPool with Seaside - how?</a><br>
Sent from the <a href="http://forum.world.st/Seaside-General-f86180.html">Seaside General mailing list archive</a> at <a href="http://Nabble.com">Nabble.com</a>.<br></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>seaside mailing list</span><br><span><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a></span><br><span><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a></span><br></div></blockquote></body></html>