| java.lang.Object org.springframework.jms.support.converter.SimpleMessageConverter org.springframework.jms.support.converter.SimpleMessageConverter102
SimpleMessageConverter102 | public class SimpleMessageConverter102 extends SimpleMessageConverter (Code) | | A subclass of
SimpleMessageConverter for the JMS 1.0.2 specification,
not relying on JMS 1.1 methods like SimpleMessageConverter itself.
This class can be used for JMS 1.0.2 providers, offering the same functionality
as SimpleMessageConverter does for JMS 1.1 providers.
The only difference to the default SimpleMessageConverter is that BytesMessage
is handled differently: namely, without using the getBodyLength()
method which has been introduced in JMS 1.1 and is therefore not available on a
JMS 1.0.2 provider.
author: Juergen Hoeller since: 1.1.1 See Also: javax.jms.BytesMessage.getBodyLength |
Method Summary | |
protected byte[] | extractByteArrayFromMessage(BytesMessage message) Overrides superclass method to copy bytes from the message into a
ByteArrayOutputStream, using a buffer, to avoid using the
getBodyLength() method which has been introduced in
JMS 1.1 and is therefore not available on a JMS 1.0.2 provider. |
BUFFER_SIZE | final public static int BUFFER_SIZE(Code) | | |
extractByteArrayFromMessage | protected byte[] extractByteArrayFromMessage(BytesMessage message) throws JMSException(Code) | | Overrides superclass method to copy bytes from the message into a
ByteArrayOutputStream, using a buffer, to avoid using the
getBodyLength() method which has been introduced in
JMS 1.1 and is therefore not available on a JMS 1.0.2 provider.
See Also: javax.jms.BytesMessage.getBodyLength |
|
|