|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JMSFormatter
Interface to allow customer specific formatting of the JMS messages to
connect to non-JMS clients. This interface has two methods. One converts byte
arrays into JMS messages and the other converts JMS messages into byte
arrays. The JMS messages are used by the JMS application and the byte arrays
are send to or received from the EntireX Broker. Applications using the
Broker ACI with units of work can send and receive these messages.
The methods have to obey the encoding of the byte array. Use the default
encoding in conjunction with translation and conversion of the EntireX
Broker. The byte array may contain binary parts.
Method Summary | |
---|---|
byte[] |
fromJMSMessage(javax.jms.Session session,
javax.jms.Message message)
Format a JMS message to send to a non-JMS application. |
javax.jms.Message |
toJMSMessage(javax.jms.Session session,
byte[] buffer)
Create a Message from the bytes received from the Broker. |
Method Detail |
---|
byte[] fromJMSMessage(javax.jms.Session session, javax.jms.Message message) throws javax.jms.JMSException
Message
and its subclasses to access the content of the
message.
session
- the session used to send the message.message
- the Message
to send to a non-JMS client.
null
or an empty byte array.
javax.jms.JMSException
- if the message is not created properly. Wrap all
Throwable
objects into JMSExceptions and
re-throw them.javax.jms.Message toJMSMessage(javax.jms.Session session, byte[] buffer) throws javax.jms.JMSException
Message
from the bytes received from the Broker.
Use the createMessageXxx
methods of the session
and the methods of Message
and its subclasses to create the
message.
session
- the session which received the byte array.buffer
- the bytes received from the broker.
Message
, created in the session
.
javax.jms.JMSException
- if the message is not created properly. Wrap all
Throwable
objects into JMSExceptions and
re-throw them.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |