I got pretty far with the session local stuff I had but I ran out of available time.
I anyone is interested in I'm willing to pass it along. And, if any of it looks useful for the hivemind-lib I'm willing to contirbute it. Its not exactly what's been discussed in this thread but it might help.. Includes an HttpSession servlet filter that puts the request in a pooled HttpSessionSource service. You can get/create a session by calling a method on the service. Also includes an interceptor and related services that will store/retrieve properties of services to/from the session. Its modeled after the persistent properties mechanism of Tapestry. As I recall I had 96% test coverage. I ran out of time before I actually tried it out in a web application. Geoff ----- Original Message ----- From: "Harish Krishnaswamy" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, April 22, 2004 10:01 AM Subject: Re: Service models > Yes, Geoff has been playing with this idea a while back. You may want to > start a discussion on the wiki. For now, I suppose you can get the > pooled service and store it in the session yourself? > > -Harish > > Andreas Winter wrote: > > >Not really, the "pooled" service model is a variant of the thread service > >model. Pooling is a concept which could be used with every service model, > >although it doesn't make much sense in the case of a singleton based > >service. > > > >- Andreas > > > > > > > > > >>There is also a "pooled" service model which is what you want. > >> > >>-Harish > >> > >>Andreas Winter wrote: > >> > >> > >> > >>>Hi, > >>> > >>>as far as I understand, HiveMind supports two service models, one based > >>> > >>> > >>on > >> > >> > >>>the singleton pattern (one service per classloader), and one based on the > >>>current thread (one service per thread). > >>> > >>>I would suggest an extension of this model, where these two are special > >>>cases: > >>> > >>>Simple allow to get service from the registry based on a client-provided > >>>object, ie. add a API like > >>> > >>>getService(Object ref, String servicePoint, Class serviceClass) > >>> > >>>to the registry. > >>> > >>>I came around with this, when I tried to get a separate service for each > >>>HTTPSession in a web application, which seems impossible with the current > >>>models. > >>> > >>>Maybe it is also useful to provide a special API to provide configuration > >>>contributions programmatically. > >>> > >>>Just some proposals > >>>Andreas > >>> > >>> > >>> > >>>This means > >>> > >>> > >>>--------------------------------------------------------------------- > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >>> > >>> > >>> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
