If you are in webapp context, setting a request attribute
(http://docs.oracle.com/cd/E17802_01/products/products/servlet/2.5/docs/servlet-2_5-mr2/javax/servlet/ServletRequest.html#setAttribute(java.lang.String,%20java.lang.Object)
) would be the usual way.

Kalle

On Wed, Aug 15, 2012 at 9:12 AM, Chin Huang <[email protected]> wrote:
>
> On Wed, Aug 15, 2012 at 6:33 AM, Marcus Bond <[email protected]>
> wrote:
>> I’d like to avoid having to implement my own ThreadLocal and the
>> corresponding clearing after the request since Shiro already has this
>> built
>> in.
>
> I also wanted to avoid implementing my own ThreadLocal, so I put my
> application data in Shiro's ThreadContext, which Shiro clears after the
> request.
>

Reply via email to