mx4j/src/tools/mx4j/tools/remote/caucho/serialization JMXDeserializer.java,1.3,1.4 JMXSerializerFactory.java,1.3,1.4

Simone Bordet <[email protected]> Mon, 20 Dec 2004 10:35:55 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/caucho/serialization
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9982/src/tools/mx4j/tools/remote/caucho/serialization

Modified Files:
	JMXDeserializer.java JMXSerializerFactory.java 
Log Message:
Fixed bug when using Burlap protocol: reading Objects was forcing burlap to use javabean deserializer; now it's using the jmxdeserializer

Index: JMXSerializerFactory.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/caucho/serialization/JMXSerializerFactory.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** JMXSerializerFactory.java	13 Nov 2004 16:38:50 -0000	1.3
--- JMXSerializerFactory.java	20 Dec 2004 10:35:53 -0000	1.4
***************
*** 29,33 ****
        // A bug in the Hessian protocol requires JMX exception to be treated as normal objects
        if (Throwable.class.isAssignableFrom(cls)) return super.getDefaultDeserializer(cls);
!       return new JMXDeserializer();
     }
  }
--- 29,33 ----
        // A bug in the Hessian protocol requires JMX exception to be treated as normal objects
        if (Throwable.class.isAssignableFrom(cls)) return super.getDefaultDeserializer(cls);
!       return new JMXDeserializer(cls);
     }
  }

Index: JMXDeserializer.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/caucho/serialization/JMXDeserializer.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** JMXDeserializer.java	13 Nov 2004 16:38:50 -0000	1.3
--- JMXDeserializer.java	20 Dec 2004 10:35:53 -0000	1.4
***************
*** 21,24 ****
--- 21,36 ----
  class JMXDeserializer extends Deserializer
  {
+    private Class type;
+ 
+    JMXDeserializer(Class type)
+    {
+       this.type = type;
+    }
+ 
+    public Class getType()
+    {
+       return type;
+    }
+ 
     public Object readMap(AbstractHessianInput in) throws IOException
     {



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/