<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
</head><body><p>Sabine,<br></p><p><br></p><p>I guess you should simply avoid accessing the session in the forked process for now.<br></p><p>Not sure I fully understand what Philippe tried to explain, but I can confirm I never saw any problems when using teh current Seaside component for objects to be used in a background process...<br></p><p>Joachim<br></p><p><br></p><p><br></p><p><br></p><blockquote type="cite">Sabine Manaa <manaa.sabine@gmail.com> hat am 26. Juli 2017 um 12:09 geschrieben:<br><br><div dir="ltr">Hi,<div><br><div>[1] Paul and Ramon suggested to use the ThreadPool [2] to me.</div><div>I want to replace my forked code for generating reports with it.</div><div><br></div><div>When trying to use it within my seaside application, I have a problem. </div><div>I reduced the Problem to this:</div><div><br></div><div>-> this works, a simple in inspector pops up </div><div>html mdlButton<br></div><div><div>onClick: (html jQuery ajax script: [ :script | [ #simple inspect ] queueWork ]);</div><div>with: '0'.</div><div><br></div><div>-> this does not work. </div><div>The generation of my reports needs the sessions objects.</div><div>Also, calling another method of the session does not work.</div><div><br></div><div>html mdlButton</div><div>onClick:</div><div>(html jQuery ajax</div><div>script: [ :script | [ self session inspect ] queueWorkAndExpireIn: 25 seconds session: self session ]);</div><div>with: '1'</div></div><div><br></div><div>Did I miss something?</div><div>Paul, thank you for updating [3] a few days ago </div><div><br></div><div>[1] <a href="http://forum.world.st/immediate-display-alert-to-user-while-Ajax-request-td4956083.html#a4956534" target="_blank">http://forum.world.st/<wbr/>immediate-display-alert-to-<wbr/>user-while-Ajax-request-<wbr/>td4956083.html#a4956534</a><br><div><br></div><div>[2]  <a target="_blank">http://onsmalltalk.com/2010-<wbr/>07-28-a-simple-thread-pool-<wbr/>for-smalltalk</a><br></div><div><a href="http://smalltalkhub.com/#!/~pdebruic/ThreadPool/packages/ThreadPool" target="_blank">http://smalltalkhub.com/#!/~<wbr/>pdebruic/ThreadPool/packages/<wbr/>ThreadPool</a><br></div></div></div></div>_______________________________________________<br>seaside mailing list<br>seaside@lists.squeakfoundation.org<br>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></blockquote></body></html>