User: fleury
Date: 00/09/26 17:30:31
Modified: src/main/org/jboss/ejb CacheKey.java
Log:
Do a proper propagation will you?
Revision Changes Path
1.4 +8 -4 jboss/src/main/org/jboss/ejb/CacheKey.java
Index: CacheKey.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/ejb/CacheKey.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- CacheKey.java 2000/09/26 20:18:48 1.3
+++ CacheKey.java 2000/09/27 00:30:31 1.4
@@ -19,7 +19,7 @@
*
* @see org.jboss.ejb.plugins.NoPassivationInstanceCache.java
* @author <a href="[EMAIL PROTECTED]">Marc Fleury</a>
-* @version $Revision: 1.3 $
+* @version $Revision: 1.4 $
*/
public class CacheKey
implements java.io.Externalizable
@@ -47,7 +47,8 @@
this.id = id;
try {
- hashCode = new java.rmi.MarshalledObject(id).hashCode();
+ hashCode = (new java.rmi.MarshalledObject(id)).hashCode();
+ System.out.println("CacheKeyHash:" +hashCode);
}
catch (Exception e) {e.printStackTrace();}
}
@@ -64,14 +65,17 @@
throws java.io.IOException
{
out.writeObject(id);
- out.write(hashCode);
+ out.writeInt(hashCode);
+ System.out.println(" Cachekye on writing "+hashCode);
+
}
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException, ClassNotFoundException
{
id = in.readObject();
- hashCode = in.read();
+ hashCode = in.readInt();
+ System.out.println(" Cachekye on reading "+hashCode);
}
// HashCode and Equals over write --------------------------------