-
Please suggest me about ThreadLocal and java.util.TimeZone (2 messages)
- Posted by: woranop chaiyakulvat
- Posted on: September 03 2009 03:26 EDT
Hi all, I wrote my web and I test my web and I found many Threads was blocking by java.util.TimeZone. My coding want to create many Calendars with "GMT" TimeZone for each request. Locale LOCALE = Locale.UK; TimeZone TIMEZONE = TimeZone.getTimeZone("GMT"); Calendar cal = Calendar.getInstance(TIMEZONE, LOCALE); I try to change to be LOCALE and TIMEZONE to be constant value (final static) But my web are slower. Should I change this code to used ThreadLocal? Or Can every one help to give some suggestions for better solutions? ThanksThreaded Messages (2)
- Re: Please suggest me about ThreadLocal and java.util.TimeZone by woranop chaiyakulvat on September 03 2009 04:00 EDT
- Re: Please suggest me about ThreadLocal and java.util.TimeZone by Sergei Batiuk on September 20 2009 18:48 EDT
-
Re: Please suggest me about ThreadLocal and java.util.TimeZone[ Go to top ]
- Posted by: woranop chaiyakulvat
- Posted on: September 03 2009 04:00 EDT
- in response to woranop chaiyakulvat
When I started stress test on my web, I found many Threads was blocking by java.util.TimeZone. Missing. -
Re: Please suggest me about ThreadLocal and java.util.TimeZone[ Go to top ]
- Posted by: Sergei Batiuk
- Posted on: September 20 2009 18:48 EDT
- in response to woranop chaiyakulvat
Please provide the code that you were trying to run and the error message, including the stack trace, that you caught. Java Development on Demand http://www.hitech.com.ua/en/