Package com.webmethods.jms.marshal
Interface WmMessageFactory
public interface WmMessageFactory
The set of methods to create JMS messages inside of a
It is not allowed to use the standard JMS procdure of using the message creation methods on javax.jms.Session.
WmMarshalIn
method. It is not allowed to use the standard JMS procdure of using the message creation methods on javax.jms.Session.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a BytesMessage for use byWmMarshalIn
implementors.Creates a MapMessage for use byWmMarshalIn
implementors.Creates a Message for use byWmMarshalIn
implementors.Creates a ObjectMessage for use byWmMarshalIn
implementors.createObjectMessage
(Serializable object) Creates a ObjectMessage for use byWmMarshalIn
implementors.Creates a StreamMessage for use byWmMarshalIn
implementors.Creates a TextMessage for use byWmMarshalIn
implementors.createTextMessage
(String text) Creates a TextMessage for use byWmMarshalIn
implementors.
-
Method Details
-
createBytesMessage
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
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
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
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
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
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
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
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
-