Does anybody use the hibernate long session pattern with tapestry and an IoC
Container (Spring/Hivemind)?
Currently, I use a home-brewn combination of Factory-Pattern and a
Servlet-Filter. I'd like to switch to Hivemind or Spring, but I don't see
any out-of-the-box support for long sessions there.
Probably this would mean supporting stateful services a la Stateful Session
Bean. You'd probably need some means of attaching/detaching some client-id
to a thread (a servlet-filter, typically), so, after that the container
could maintain same (service-id, client-id) to service-implementation map.
In the servlet-case parallel request from the same client could be blocked
(synchronised on) - actually this should be the general case - clients
wanting to be served concurrently must provide thread id's instead of client
ids.
HiveMind's pooled services should already be quite close, only, the pool
needs to become aware of the client-id's ...

Any ideas?
Marcus

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to