public class TextFormatter extends java.lang.Object implements JMSFormatter
TextMessage
is send as the payload of an ACI message contained
in a unit of work.Constructor and Description |
---|
TextFormatter() |
Modifier and Type | Method and Description |
---|---|
byte[] |
fromJMSMessage(javax.jms.Session session,
javax.jms.Message message)
Formats a byte array from a JMS Message.
|
javax.jms.Message |
toJMSMessage(javax.jms.Session session,
byte[] buffer)
Create a JMS message from the byte array received from the broker.
|
public javax.jms.Message toJMSMessage(javax.jms.Session session, byte[] buffer) throws javax.jms.JMSException
toJMSMessage
in interface JMSFormatter
session
- the JMS session, used to create the JMS message.buffer
- the message from the broker.javax.jms.JMSException
- if the message is not properly created.public byte[] fromJMSMessage(javax.jms.Session session, javax.jms.Message message) throws javax.jms.JMSException
fromJMSMessage
in interface JMSFormatter
session
- the JMS session (currently not used).message
- the JMS message to format.javax.jms.JMSException
- if the message is not properly created.