SimpleMessageConverter
@Deprecated public class SimpleMessageConverter102 extends SimpleMessageConverter
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.
BytesMessage.getBodyLength()
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE
Deprecated.
|
Constructor and Description |
---|
SimpleMessageConverter102()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
extractByteArrayFromMessage(BytesMessage message)
Deprecated.
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. |
createMessageForByteArray, createMessageForMap, createMessageForSerializable, createMessageForString, extractMapFromMessage, extractSerializableFromMessage, extractStringFromMessage, fromMessage, toMessage
public static final int BUFFER_SIZE
protected byte[] extractByteArrayFromMessage(BytesMessage message) throws JMSException
getBodyLength()
method which has been introduced in
JMS 1.1 and is therefore not available on a JMS 1.0.2 provider.extractByteArrayFromMessage
in class SimpleMessageConverter
message
- the message to convertJMSException
- if thrown by JMS methodsBytesMessage.getBodyLength()