Re: ThreadPool with Seaside - how?

Sabine Manaa <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <CA+UbgZZTPhD_5kx8uBV66kKZH6aPNEr2WgnrUdEj0tAc7Ue-eQ@mail.gmail.com>
when the report generation is invoked, the session is alive and I have a
long session time.
So, it is unlikely that the session will expire.
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.

Ramon, I tested your suggestion and with the session passed into the fork
with the local variable, it works.

I was mislead by the method >>queueWorkAndExpireIn:session:

This works
| theSession |
theSession := self session.
[ theSession dummyMethod ] queueWorkAndExpireIn: 25 seconds session: self
session ]

and this works too:
| theSession |
theSession := self session.
[ theSession dummyMethod2 ] queueWork ]);

==>I don't understand for what the session parameter in
>>queueWorkAndExpireIn:session: is used.

But I can also use queueWork.

This/the smalltalk side seems to work all fine now with the ThreadPool.
Thank you for this!

I also use an external program to
* merge multiple  PDFs into one
* and to generate pngs from pdfs for the preview
(https://pdfbox.apache.org).

The remaining problem is, that I have many pdfbox calls which create a high
load on the machine...
:-)




--
View this message in context: http://forum.world.st/ThreadPool-with-Seaside-how-tp4956812p4957069.html
Sent from the Seaside General mailing list archive at Nabble.com.

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.