I've been using ThreadLocal's and had to forceably reset the object on the
ThreadLocal on every use to specify a transaction cache:
public final class Tx
{
private static ThreadLocal localCache = new ThreadLocal()
{
protected synchronized Object initialValue()
: Pon Umapathy K.S. [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 8:42 AM
To: Struts Users Mailing List
Subject: RE: InheritableThreadLocal issues
Thanks for the reply,Jacob.
Just to confirm the issue -
This code snippet resets the object stored in the ThreadLocal var when a
set
Thanks Jacob.Will try that out.
-Original Message-
From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 8:14 PM
To: Struts Users Mailing List
Subject: [OT] RE: InheritableThreadLocal issues
Yes, the issue is that the ThreadLocal var *could* be the one
Subject: RE: InheritableThreadLocal issues
I've been using ThreadLocal's and had to forceably reset the object on the
ThreadLocal on every use to specify a transaction cache:
public final class Tx
{
private static ThreadLocal localCache = new ThreadLocal()
{
protected
4 matches
Mail list logo