| Author |
Dynamic injection of properties based on a locale in Spring
|
Prabhakar Reddy Bokka
Ranch Hand
Joined: Jul 26, 2005
Posts: 174
|
|
Hi All,
We have an existing application in struts2 which uses ThreadLoal to set and get the information based on locale.
User will set the flag into ThreadLoal on his logon based on locale, and will retrive the properties file on need basis accross application. Now migrating this application to Spring we are facing an issue in getting the flag info from ThreadLocal.
Different threads are getting created by the container. One thread for login add flag into ThreadLocal, and few other threads for accessing the flag from different places of application. As specified in ThreadLocal the infomation set into ThreadLocal is specific to that thread, so we are getting null from all the other threads accessing flag (from ThreadLocal) from different places of the application.
Could any one suggest better approach for accessing properties file based on the info set while login?
|
SCJP 5, SCWCD 5
|
 |
Prabhakar Reddy Bokka
Ranch Hand
Joined: Jul 26, 2005
Posts: 174
|
|
Friends!!
Any suggestions??
|
 |
 |
|
|
subject: Dynamic injection of properties based on a locale in Spring
|
|
|