org.jboss.jms.wireformat
Class JMSWireFormat
java.lang.Object
org.jboss.jms.wireformat.JMSWireFormat
- public class JMSWireFormat
- extends java.lang.Object
We do not use Java or JBoss serialization to send data over the wire. Serialization adds
considerable overhead in terms of the amount of data sent (it adds class information plus block
data information) which significantly degrades performance.
Instead we define a customer wire format that minimises the amount of data sent.
The only exception to this rule is when sending an ObjectMessage which contains a user defined
object whose type is only known at run-time. In this case we use serialization.
- Version:
- $Revision: 2686 $
$Id: JMSWireFormat.java 2686 2007-05-15 08:47:20Z timfox $
- Author:
- Tim Fox, Ovidiu Feodorov
Field Summary |
protected boolean |
trace
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
trace
protected boolean trace
JMSWireFormat
public JMSWireFormat()
write
public void write(java.lang.Object obj,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
cloneMarshaller
public Marshaller cloneMarshaller()
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
read
public java.lang.Object read(java.io.InputStream in,
java.util.Map map)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
cloneUnMarshaller
public UnMarshaller cloneUnMarshaller()
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
setClassLoader
public void setClassLoader(java.lang.ClassLoader classloader)
Copyright © 2006 JBoss Inc. All Rights Reserved.