webMethods Broker API for JMS
Version 9.5.1.0.171 091713

com.webmethods.jms.marshal
Interface WmMessageFactory


public interface WmMessageFactory

The set of methods to create JMS messages inside of a WmMarshalIn method.
It is not allowed to use the standard JMS procdure of using the message creation methods on javax.jms.Session.


Method Summary
 com.webmethods.jms.WmBytesMessage createBytesMessage()
          Creates a BytesMessage for use by WmMarshalIn implementors.
 com.webmethods.jms.WmMapMessage createMapMessage()
          Creates a MapMessage for use by WmMarshalIn implementors.
 WmMessage createMessage()
          Creates a Message for use by WmMarshalIn implementors.
 com.webmethods.jms.WmObjectMessage createObjectMessage()
          Creates a ObjectMessage for use by WmMarshalIn implementors.
 com.webmethods.jms.WmObjectMessage createObjectMessage(java.io.Serializable object)
          Creates a ObjectMessage for use by WmMarshalIn implementors.
 com.webmethods.jms.WmStreamMessage createStreamMessage()
          Creates a StreamMessage for use by WmMarshalIn implementors.
 com.webmethods.jms.WmTextMessage createTextMessage()
          Creates a TextMessage for use by WmMarshalIn implementors.
 com.webmethods.jms.WmTextMessage createTextMessage(java.lang.String text)
          Creates a TextMessage for use by WmMarshalIn implementors.
 

Method Detail

createBytesMessage

com.webmethods.jms.WmBytesMessage createBytesMessage()
                                                     throws javax.jms.JMSException
Creates a BytesMessage for use by WmMarshalIn implementors.

Returns:
a new BytesMessage that can be populated by the marshalling routine from the BrokerEvent.
Throws:
javax.jms.JMSException

createMapMessage

com.webmethods.jms.WmMapMessage createMapMessage()
                                                 throws javax.jms.JMSException
Creates a MapMessage for use by WmMarshalIn implementors.

Returns:
a new MapMessage that can be populated by the marshalling routine from the BrokerEvent.
Throws:
javax.jms.JMSException

createMessage

WmMessage createMessage()
                        throws javax.jms.JMSException
Creates a Message for use by WmMarshalIn implementors.

Returns:
a new Message that can be populated by the marshalling routine from the BrokerEvent.
Throws:
javax.jms.JMSException

createObjectMessage

com.webmethods.jms.WmObjectMessage createObjectMessage()
                                                       throws javax.jms.JMSException
Creates a ObjectMessage for use by WmMarshalIn implementors.

Returns:
a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
Throws:
javax.jms.JMSException

createObjectMessage

com.webmethods.jms.WmObjectMessage createObjectMessage(java.io.Serializable object)
                                                       throws javax.jms.JMSException
Creates a ObjectMessage for use by WmMarshalIn implementors.

Parameters:
object - the object to use to initialize this message
Returns:
a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
Throws:
javax.jms.JMSException

createStreamMessage

com.webmethods.jms.WmStreamMessage createStreamMessage()
                                                       throws javax.jms.JMSException
Creates a StreamMessage for use by WmMarshalIn implementors.

Returns:
a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
Throws:
javax.jms.JMSException

createTextMessage

com.webmethods.jms.WmTextMessage createTextMessage()
                                                   throws javax.jms.JMSException
Creates a TextMessage for use by WmMarshalIn implementors.

Returns:
a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
Throws:
javax.jms.JMSException

createTextMessage

com.webmethods.jms.WmTextMessage createTextMessage(java.lang.String text)
                                                   throws javax.jms.JMSException
Creates a TextMessage for use by WmMarshalIn implementors.

Parameters:
text - the string used to initialize this message
Returns:
a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
Throws:
javax.jms.JMSException

webMethods Broker API for JMS
Version 9.5.1.0.171 091713


Copyright © 2001 - 2013 Software AG Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, United States of America, and/or their suppliers.