Eric Ching wrote:> Is it possible to start a thread and store a reference to the thread in a
> session? I do this with servlets quite frequently and am wondering if a
> similar thing is possible in camping.
>
Sessions get serialized to the database and you can''t serialize a
thread.
However, if you''re running Camping under WEBrick or Mongrel, you could
probably keep a list of threads in your Camping application''s class and
use the Thread''s object_id to refer back to it from your session.
If you''re running Camping under FastCGI, you''ll need to do
further work
to make sure the same session always lands in the same process
containing that thread.
_why