ThreadLocal variable

hi do you have a good example on how to use threadlocal in a java program..

I want to use it in my program so that each thread will create a separate copy of jdbc connection. i dont know how to set this..Please help me.

thanks in advance for your help

[270 byte] By [rinoa_fftsya] at [2007-11-27 11:00:31]
# 1

I didn't get your prblem.

Do you want to create threads and don't know how?

Do you want to use the same Connection in all Threads?

What?

Sorry... my english.

pbulgarellia at 2007-7-29 12:30:12 > top of Java-index,Core,Core APIs...
# 2

See the Javadoc.

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ThreadLocal.html

ejpa at 2007-7-29 12:30:12 > top of Java-index,Core,Core APIs...