• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 2 - Action Context - Threadlocal

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am not understanding how by making the Action Context Thread Local, we can access it from anywhere in the same thread of execution.
As I know about Thread Local, its used to make a variable to have different values for each and every thread which is accessing it.

So if Action Context is Thread Local, I do understand it that every thread which access it will have different values. I am just not understanding how threadlocal makes it look like a servlet context object, so that we can access it from anywhere.
Please help !

Thanks and Regards,
Gaurav
reply
    Bookmark Topic Watch Topic
  • New Topic