I have a session scoped bean declares as below
No to the problem, I need to be able to use and access this been from a background task, i.e. from a thread where I dont have a valid session.Code:<bean id="authenticateContextSession" class="com.wss.WSSAuthenticateContext" scope="session" > <aop:scoped-proxy /> </bean>
My question is if its possible to programatically redefine this bean to thread scope (in runtime) so that my background task can use it?
Ive tried the HotSwappableTargetSource approach but that replaces the whole bean instance, I want the change to only be vissible threadlocal.
Regards
Richard


Reply With Quote