Package com.webmethods.jms.marshal
Interface WmMessageFactory
-
- All Known Implementing Classes:
WmMessageFactoryImpl
public interface WmMessageFactory
The set of methods to create JMS messages inside of aWmMarshalIn
method.
It is not allowed to use the standard JMS procdure of using the message creation methods on javax.jms.Session.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WmBytesMessage
createBytesMessage()
Creates a BytesMessage for use byWmMarshalIn
implementors.WmMapMessage
createMapMessage()
Creates a MapMessage for use byWmMarshalIn
implementors.WmMessage
createMessage()
Creates a Message for use byWmMarshalIn
implementors.WmObjectMessage
createObjectMessage()
Creates a ObjectMessage for use byWmMarshalIn
implementors.WmObjectMessage
createObjectMessage(java.io.Serializable object)
Creates a ObjectMessage for use byWmMarshalIn
implementors.WmStreamMessage
createStreamMessage()
Creates a StreamMessage for use byWmMarshalIn
implementors.WmTextMessage
createTextMessage()
Creates a TextMessage for use byWmMarshalIn
implementors.WmTextMessage
createTextMessage(java.lang.String text)
Creates a TextMessage for use byWmMarshalIn
implementors.
-
-
-
Method Detail
-
createBytesMessage
WmBytesMessage createBytesMessage() throws javax.jms.JMSException
Creates a BytesMessage for use byWmMarshalIn
implementors.- Returns:
- a new BytesMessage that can be populated by the marshalling routine from the BrokerEvent.
- Throws:
javax.jms.JMSException
-
createMapMessage
WmMapMessage createMapMessage() throws javax.jms.JMSException
Creates a MapMessage for use byWmMarshalIn
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 byWmMarshalIn
implementors.- Returns:
- a new Message that can be populated by the marshalling routine from the BrokerEvent.
- Throws:
javax.jms.JMSException
-
createObjectMessage
WmObjectMessage createObjectMessage() throws javax.jms.JMSException
Creates a ObjectMessage for use byWmMarshalIn
implementors.- Returns:
- a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
- Throws:
javax.jms.JMSException
-
createObjectMessage
WmObjectMessage createObjectMessage(java.io.Serializable object) throws javax.jms.JMSException
Creates a ObjectMessage for use byWmMarshalIn
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
WmStreamMessage createStreamMessage() throws javax.jms.JMSException
Creates a StreamMessage for use byWmMarshalIn
implementors.- Returns:
- a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
- Throws:
javax.jms.JMSException
-
createTextMessage
WmTextMessage createTextMessage() throws javax.jms.JMSException
Creates a TextMessage for use byWmMarshalIn
implementors.- Returns:
- a new ObjectMessage that can be populated by the marshalling routine from the BrokerEvent.
- Throws:
javax.jms.JMSException
-
createTextMessage
WmTextMessage createTextMessage(java.lang.String text) throws javax.jms.JMSException
Creates a TextMessage for use byWmMarshalIn
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
-
-