djencks 2005/03/20 01:26:08
Modified: modules/core/src/java/org/openejb/corba/transaction
IORTransactionInterceptor.java
Log:
Fix encoding to correspond to adc's decoding fix
Revision Changes Path
1.2 +6 -5
openejb/modules/core/src/java/org/openejb/corba/transaction/IORTransactionInterceptor.java
Index: IORTransactionInterceptor.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/transaction/IORTransactionInterceptor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IORTransactionInterceptor.java 15 Mar 2005 05:27:04 -0000 1.1
+++ IORTransactionInterceptor.java 20 Mar 2005 06:26:08 -0000 1.2
@@ -74,13 +74,14 @@
try {
Any invAny = Util.getORB().create_any();
InvocationPolicyValueHelper.insert(invAny, SHARED.value);
- TaggedComponent invocationPolicyComponent = new
TaggedComponent(TAG_INV_POLICY.value, Util.getCodec().encode_value(invAny));
+ byte[] invBytes = Util.getCodec().encode_value(invAny);
+ TaggedComponent invocationPolicyComponent = new
TaggedComponent(TAG_INV_POLICY.value, invBytes);
info.add_ior_component_to_profile(invocationPolicyComponent,
TAG_INTERNET_IOP.value);
Any otsAny = Util.getORB().create_any();
OTSPolicyValueHelper.insert(otsAny, ADAPTS.value);
- byte[] bytes = Util.getCodec().encode(otsAny);
- TaggedComponent otsPolicyComponent = new
TaggedComponent(TAG_OTS_POLICY.value, bytes);
+ byte[] otsBytes = Util.getCodec().encode_value(otsAny);
+ TaggedComponent otsPolicyComponent = new
TaggedComponent(TAG_OTS_POLICY.value, otsBytes);
info.add_ior_component_to_profile(otsPolicyComponent,
TAG_INTERNET_IOP.value);
} catch (INV_POLICY e) {
// do nothing