• 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 ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

sessions, locale and threads?

Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
I am working on a web application, in my application, some information may change depend on the current locale that specified by the users. so I need to check the locale each time I am going to send out those information from my API. in addition in my API I have no access to request and response so I need to create a class in which I retrieve the current locale.

my problem is the design of this process. currently I am using a ThreadLocal in order to store the current locale, but I dont know whether a session may include more than one thread or not? if each session cause only one thread the ThreadLocal will work fine.

do you have any idea or such experience?

thank you very much in advance
This is my favorite show. And this is my favorite tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic