wrap httpservletrequest and session in threadlocal variable

D

dharshanav

Hi,

I'm in the process of refactoring a web application (business logic in
the action classes), which has lots of references to httpservletrequest
and httpsession.

I'm planning to wrap the request and session variables through two
static classes, containing threadlocal variables, and ititialising it
in through a filter to prevent the code from breaking during the
refactor process.
Is it a good idea to do this?

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top