On Nov 5, 2007 2:02 PM, Chris Lewis <[EMAIL PROTECTED]> wrote: > Regarding the dispatcher article (which I wrote), your problem is that > you are attempting to use @ApplicationState in a service, and this is > not possible, at least in this case. Why? Because state is based on the > request, and services are by default singletons. This means you have one > instance of your access controller servicing 1 or 10 or 100 simultaneous > requests at once. As such, its not possible to use @ApplicationState.
I've implemented the same as a RequestFilter which sits on layer above dispatchers. Actually i don't know if this kind of feature is better implemented as a Dispatcher or a RequestFilter... maybe it depends on what you're protecting. -- Massimo http://meridio.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]