I have implemented a timeout aspect.
Which works. Except for the cases where the
aspect is used on classes with request scoped attribues.
In those cases I get a BeanCreationException with a message like :
Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread?
The answer to the question is "yes" because the timeout aspect is spinning of a separeate thread to run the method invocation in.
I would like the aspect to work in all circumstances.