Author: ron.sigal(a)jboss.com
Date: 2009-05-12 01:59:39 -0400 (Tue, 12 May 2009)
New Revision: 5198
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/Remoting.java
Log:
JBREM-1127: Added "useCurrentThreadClassLoader: constant.
Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/Remoting.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/Remoting.java 2009-05-12 05:59:04
UTC (rev 5197)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/Remoting.java 2009-05-12 05:59:39
UTC (rev 5198)
@@ -90,4 +90,13 @@
*/
public static final String USE_CLIENT_CONNECTION_IDENTITY =
"useClientConnectionIdentity";
// public static final String USE_SERVER_CONNECTION_IDENTITY =
"useServerConnectionIdentity";
+
+ /**
+ * A flag for indicating that when a client side Remoting unmarshaller uses the
Thread
+ * contect classloader, it should use the context classloader for the currently
executing
+ * thread, rather than the context classloader for the thread in which the
unmarshaller
+ * was created. Note that this behavior is generally desirable and was introduced to
+ * fix a source of ClassCastExceptions.
+ */
+ public static final String USE_CURRENT_THREAD_CLASS_LOADER =
"useCurrentThreadClassLoader";
}
Show replies by date