Author: richard.opalka(a)jboss.com
Date: 2011-08-09 18:56:55 -0400 (Tue, 09 Aug 2011)
New Revision: 14797
Modified:
common/trunk/src/main/java/org/jboss/ws/common/injection/ThreadLocalAwareWebServiceContext.java
Log:
[JBWS-3337] fixing singleton serialization
Modified:
common/trunk/src/main/java/org/jboss/ws/common/injection/ThreadLocalAwareWebServiceContext.java
===================================================================
---
common/trunk/src/main/java/org/jboss/ws/common/injection/ThreadLocalAwareWebServiceContext.java 2011-08-09
22:54:28 UTC (rev 14796)
+++
common/trunk/src/main/java/org/jboss/ws/common/injection/ThreadLocalAwareWebServiceContext.java 2011-08-09
22:56:55 UTC (rev 14797)
@@ -40,7 +40,7 @@
private static final long serialVersionUID = 126557512266764152L;
- private static final transient ThreadLocalAwareWebServiceContext SINGLETON = new
ThreadLocalAwareWebServiceContext();
+ private static final ThreadLocalAwareWebServiceContext SINGLETON = new
ThreadLocalAwareWebServiceContext();
private final transient ThreadLocal<WebServiceContext> contexts = new
InheritableThreadLocal<WebServiceContext>();
@@ -91,4 +91,9 @@
return delegate;
}
+ protected Object readResolve()
+ {
+ return SINGLETON;
+ }
+
}
Show replies by date