public class TextFormatterReplyQueue extends java.lang.Object implements JMSFormatter
TextMessage
is send as the payload of an ACI message contained
in a unit of work. The ReplyTo destination is included in this ACI message.
The type of the ReplyTo destination is coded in a single character: '1' for
queue (use 'JMS/<queue name>/QUEUE' as service), '2' for temporary
queue (use 'JMS/<queue name>/TMPQUEUE' as service), '3' for topic (use
'<topic name>' as topic), '4' for temporary topic (use '<topic
name>' as topic).Constructor and Description |
---|
TextFormatterReplyQueue() |
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. A TextMessage
is
needed.javax.jms.JMSException
- if the message is not properly created.