[Jboss-cvs] JBossAS SVN: r56139 - trunk/cluster/src/main/org/jboss/ha/framework/server
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Aug 21 22:40:44 EDT 2006
Author: bstansberry at jboss.com
Date: 2006-08-21 22:40:43 -0400 (Mon, 21 Aug 2006)
New Revision: 56139
Modified:
trunk/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java
Log:
Use of Marshaller required with JG 2.4.CR1
Modified: trunk/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java
===================================================================
--- trunk/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java 2006-08-22 00:29:48 UTC (rev 56138)
+++ trunk/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java 2006-08-22 02:40:43 UTC (rev 56139)
@@ -201,6 +201,7 @@
this.channel = channel;
this.partitionName = partitionName;
this.history = new Vector();
+ this.setMarshaller(new MarshallerImpl());
logHistory ("Partition object created");
}
@@ -1302,7 +1303,22 @@
Vector allMembers;
Vector originatingGroups;
}
+
+ private class MarshallerImpl implements org.jgroups.blocks.RpcDispatcher.Marshaller
+ {
+ public Object objectFromByteBuffer(byte[] buf) throws Exception
+ {
+ return HAPartitionImpl.objectFromByteBuffer(buf);
+ }
+
+ public byte[] objectToByteBuffer(Object obj) throws Exception
+ {
+ return HAPartitionImpl.objectToByteBuffer(obj);
+ }
+
+ }
+
// Private -------------------------------------------------------
// Inner classes -------------------------------------------------
More information about the jboss-cvs-commits
mailing list