public interface JmsMessageFactory
Modifier and Type | Method and Description |
---|---|
JmsBytesMessage |
createBytesMessage()
Creates an instance of a basic JmsBytesMessage object.
|
JmsMapMessage |
createMapMessage()
Creates an instance of a basic JmsMapMessage object.
|
JmsMessage |
createMessage()
Creates an instance of a basic JmsMessage object.
|
JmsObjectMessage |
createObjectMessage()
Creates an instance of a basic JmsObjectMessage object.
|
JmsObjectMessage |
createObjectMessage(Serializable payload)
Creates an instance of a basic JmsObjectMessage object.
|
JmsStreamMessage |
createStreamMessage()
Creates an instance of a basic JmsStreamMessage object.
|
JmsTextMessage |
createTextMessage()
Creates an instance of a basic JmsTextMessage object.
|
JmsTextMessage |
createTextMessage(String payload)
Creates an instance of a basic JmsTextMessage object.
|
JmsMessage createMessage() throws javax.jms.JMSException
javax.jms.JMSException
- if the provider cannot create the message for some reason.JmsTextMessage createTextMessage(String payload) throws javax.jms.JMSException
payload
- The value to initially assign to the Message body, or null if empty to start.javax.jms.JMSException
- if the provider cannot create the message for some reason.JmsTextMessage createTextMessage() throws javax.jms.JMSException
javax.jms.JMSException
- if the provider cannot create the message for some reason.JmsBytesMessage createBytesMessage() throws javax.jms.JMSException
javax.jms.JMSException
- if the provider cannot create the message for some reason.JmsMapMessage createMapMessage() throws javax.jms.JMSException
javax.jms.JMSException
- if the provider cannot create the message for some reason.JmsStreamMessage createStreamMessage() throws javax.jms.JMSException
javax.jms.JMSException
- if the provider cannot create the message for some reason.JmsObjectMessage createObjectMessage(Serializable payload) throws javax.jms.JMSException
payload
- The value to initially assign to the Message body, or null if empty to start.javax.jms.JMSException
- if the provider cannot create the message for some reason.JmsObjectMessage createObjectMessage() throws javax.jms.JMSException
javax.jms.JMSException
- if the provider cannot create the message for some reason.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.