[jboss-cvs] JBossAS SVN: r103879 - branches/JBPAPP_4_3_0_GA_CP07_JBPAPP-4090/iiop/src/main/org/jboss/tm/iiop.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Apr 13 00:27:20 EDT 2010
Author: jbertram at redhat.com
Date: 2010-04-13 00:27:19 -0400 (Tue, 13 Apr 2010)
New Revision: 103879
Modified:
branches/JBPAPP_4_3_0_GA_CP07_JBPAPP-4090/iiop/src/main/org/jboss/tm/iiop/TxServerClientInterceptor.java
Log:
JBPAPP-4090
Modified: branches/JBPAPP_4_3_0_GA_CP07_JBPAPP-4090/iiop/src/main/org/jboss/tm/iiop/TxServerClientInterceptor.java
===================================================================
--- branches/JBPAPP_4_3_0_GA_CP07_JBPAPP-4090/iiop/src/main/org/jboss/tm/iiop/TxServerClientInterceptor.java 2010-04-13 04:17:52 UTC (rev 103878)
+++ branches/JBPAPP_4_3_0_GA_CP07_JBPAPP-4090/iiop/src/main/org/jboss/tm/iiop/TxServerClientInterceptor.java 2010-04-13 04:27:19 UTC (rev 103879)
@@ -61,8 +61,23 @@
private static final int txContextId = TransactionService.value;
private static Codec codec;
private static TransactionManager tm;
- private static PropagationContext emptyPC;
+ private static final PropagationContext emptyPC;
+ static
+ {
+ // According to the spec, this should all be ignored
+ // But we get NPEs if it doesn't contain some content
+ emptyPC = new PropagationContext();
+ emptyPC.parents = new TransIdentity[0];
+ emptyPC.current = new TransIdentity();
+ emptyPC.current.otid = new otid_t();
+ emptyPC.current.otid.formatID = 666;
+ emptyPC.current.otid.bqual_length = 1;
+ emptyPC.current.otid.tid = new byte[] { (byte) 1 };
+ emptyPC.implementation_specific_data = ORB.init().create_any();
+ emptyPC.implementation_specific_data.insert_boolean(false);
+ }
+
// Static methods ------------------------------------------------
static void init(Codec codec)
@@ -89,20 +104,6 @@
static PropagationContext getEmptyPropagationContext()
{
- if (emptyPC == null)
- {
- // According to the spec, this should all be ignored
- // But we get NPEs if it doesn't contain some content
- emptyPC = new PropagationContext();
- emptyPC.parents = new TransIdentity[0];
- emptyPC.current = new TransIdentity();
- emptyPC.current.otid = new otid_t();
- emptyPC.current.otid.formatID = 666;
- emptyPC.current.otid.bqual_length = 1;
- emptyPC.current.otid.tid = new byte[] { (byte) 1 };
- emptyPC.implementation_specific_data = ORB.init().create_any();
- emptyPC.implementation_specific_data.insert_boolean(false);
- }
return emptyPC;
}
More information about the jboss-cvs-commits
mailing list