Uses of Class
jakarta.jms.JMSException
Package
Description
The Jakarta Messaging API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages.
-
Uses of JMSException in jakarta.jms
Modifier and TypeClassDescriptionclass
This exception is thrown when a method is invoked at an illegal or inappropriate time or if the provider is not in an appropriate state for the requested operation.class
This exception must be thrown when a client attempts to set a connection's client ID to a value that is rejected by a provider.class
This exception must be thrown when a destination either is not understood by a provider or is no longer valid.class
This exception must be thrown when a Jakarta Messaging client attempts to give a provider a message selector with invalid syntax.class
This exception must be thrown when a provider rejects a user name/password submitted by a client.class
This exception must be thrown when an unexpected end of stream has been reached when aStreamMessage
orBytesMessage
is being read.class
This exception must be thrown when a Jakarta Messaging client attempts to use a data type not supported by a message or attempts to read data in a message as the wrong type.class
This exception must be thrown when a Jakarta Messaging client attempts to read a write-only message.class
This exception must be thrown when a Jakarta Messaging client attempts to write to a read-only message.class
This exception is thrown when a provider is unable to allocate the resources required by a method.class
This exception is thrown when an operation is invalid because a transaction is in progress.class
This exception must be thrown when a call toSession.commit
results in a rollback of the current transaction.Modifier and TypeMethodDescriptionvoid
ExceptionListener.onException
(JMSException exception) Notifies user of a Jakarta Messaging exception.Modifier and TypeMethodDescriptionvoid
Message.acknowledge()
Acknowledges all consumed messages of the session of this consumed message.void
Message.clearBody()
Clears out the message body.void
Message.clearProperties()
Clears a message's properties.void
Connection.close()
Closes the connection.void
ConnectionConsumer.close()
Closes the connection consumer.void
MessageConsumer.close()
Closes the message consumer.void
MessageProducer.close()
Closes the message producer.void
QueueBrowser.close()
Closes theQueueBrowser
.void
QueueRequestor.close()
Closes theQueueRequestor
and its session.void
Session.close()
Closes the session.void
TopicRequestor.close()
Closes theTopicRequestor
and its session.void
Session.commit()
Commits all messages done in this transaction and releases any locks currently held.void
XASession.commit()
Throws aTransactionInProgressException
, since it should not be called for anXASession
object.QueueSession.createBrowser
(Queue queue) Creates aQueueBrowser
object to peek at the messages on the specified queue.QueueSession.createBrowser
(Queue queue, String messageSelector) Creates aQueueBrowser
object to peek at the messages on the specified queue using a message selector.Session.createBrowser
(Queue queue) Creates aQueueBrowser
object to peek at the messages on the specified queue.Session.createBrowser
(Queue queue, String messageSelector) Creates aQueueBrowser
object to peek at the messages on the specified queue using a message selector.Session.createBytesMessage()
Creates aBytesMessage
object.ConnectionFactory.createConnection()
Creates a connection with the default user identity.ConnectionFactory.createConnection
(String userName, String password) Creates a connection with the specified user identity.Connection.createConnectionConsumer
(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Creates a connection consumer for this connection (optional operation) on the specific destination.QueueConnection.createConnectionConsumer
(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Creates a connection consumer for this connection (optional operation).TopicConnection.createConnectionConsumer
(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Creates a connection consumer for this connection (optional operation).Session.createConsumer
(Destination destination) Creates aMessageConsumer
for the specified destination.Session.createConsumer
(Destination destination, String messageSelector) Creates aMessageConsumer
for the specified destination, using a message selector.Session.createConsumer
(Destination destination, String messageSelector, boolean noLocal) Creates aMessageConsumer
for the specified destination, specifying a message selector and thenoLocal
parameter.Connection.createDurableConnectionConsumer
(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Creates a connection consumer for this connection (optional operation) on the specific topic using an unshared durable subscription with the specified name.TopicConnection.createDurableConnectionConsumer
(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Create a durable connection consumer for this connection (optional operation).Session.createDurableConsumer
(Topic topic, String name) Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription.Session.createDurableConsumer
(Topic topic, String name, String messageSelector, boolean noLocal) Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and thenoLocal
parameter, and creates a consumer on that durable subscription.Session.createDurableSubscriber
(Topic topic, String name) Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription.Session.createDurableSubscriber
(Topic topic, String name, String messageSelector, boolean noLocal) Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and thenoLocal
parameter, and creates a consumer on that durable subscription.TopicSession.createDurableSubscriber
(Topic topic, String name) Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription.TopicSession.createDurableSubscriber
(Topic topic, String name, String messageSelector, boolean noLocal) Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and thenoLocal
parameter, and creates a consumer on that durable subscription.Session.createMapMessage()
Creates aMapMessage
object.Session.createMessage()
Creates aMessage
object.Session.createObjectMessage()
Creates anObjectMessage
object.Session.createObjectMessage
(Serializable object) Creates an initializedObjectMessage
object.Session.createProducer
(Destination destination) Creates aMessageProducer
to send messages to the specified destination.TopicSession.createPublisher
(Topic topic) Creates a publisher for the specified topic.QueueSession.createQueue
(String queueName) Creates a queue identity given aQueue
name.Session.createQueue
(String queueName) Creates aQueue
object which encapsulates a specified provider-specific queue name.QueueConnectionFactory.createQueueConnection()
Creates a queue connection with the default user identity.QueueConnectionFactory.createQueueConnection
(String userName, String password) Creates a queue connection with the specified user identity.QueueConnection.createQueueSession
(boolean transacted, int acknowledgeMode) Creates aQueueSession
object, specifyingtransacted
andacknowledgeMode
.XAQueueConnection.createQueueSession
(boolean transacted, int acknowledgeMode) Creates aQueueSession
object.QueueSession.createReceiver
(Queue queue) Creates aQueueReceiver
object to receive messages from the specified queue.QueueSession.createReceiver
(Queue queue, String messageSelector) Creates aQueueReceiver
object to receive messages from the specified queue using a message selector.QueueSession.createSender
(Queue queue) Creates aQueueSender
object to send messages to the specified queue.Connection.createSession()
Creates aSession
object, specifying no arguments.Connection.createSession
(boolean transacted, int acknowledgeMode) Creates aSession
object, specifyingtransacted
andacknowledgeMode
.Connection.createSession
(int sessionMode) Creates aSession
object, specifyingsessionMode
.XAConnection.createSession
(boolean transacted, int acknowledgeMode) Creates anSession
object.Connection.createSharedConnectionConsumer
(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Creates a connection consumer for this connection (optional operation) on the specific topic using a shared non-durable subscription with the specified name.Session.createSharedConsumer
(Topic topic, String sharedSubscriptionName) Creates a shared non-durable subscription with the specified name on the specified topic (if one does not already exist) and creates a consumer on that subscription.Session.createSharedConsumer
(Topic topic, String sharedSubscriptionName, String messageSelector) Creates a shared non-durable subscription with the specified name on the specified topic (if one does not already exist) specifying a message selector, and creates a consumer on that subscription.Connection.createSharedDurableConnectionConsumer
(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Creates a connection consumer for this connection (optional operation) on the specific topic using a shared durable subscription with the specified name.Session.createSharedDurableConsumer
(Topic topic, String name) Creates a shared durable subscription on the specified topic (if one does not already exist), specifying a message selector and thenoLocal
parameter, and creates a consumer on that durable subscription.Session.createSharedDurableConsumer
(Topic topic, String name, String messageSelector) Creates a shared durable subscription on the specified topic (if one does not already exist), specifying a message selector, and creates a consumer on that durable subscription.Session.createStreamMessage()
Creates aStreamMessage
object.TopicSession.createSubscriber
(Topic topic) Creates a nondurable subscriber to the specified topic.TopicSession.createSubscriber
(Topic topic, String messageSelector, boolean noLocal) Creates a nondurable subscriber to the specified topic, using a message selector or specifying whether messages published by its own connection should be delivered to it.QueueSession.createTemporaryQueue()
Creates aTemporaryQueue
object.Session.createTemporaryQueue()
Creates aTemporaryQueue
object.Session.createTemporaryTopic()
Creates aTemporaryTopic
object.TopicSession.createTemporaryTopic()
Creates aTemporaryTopic
object.Session.createTextMessage()
Creates aTextMessage
object.Session.createTextMessage
(String text) Creates an initializedTextMessage
object.Session.createTopic
(String topicName) Creates aTopic
object which encapsulates a specified provider-specific topic name.TopicSession.createTopic
(String topicName) Creates a topic identity given aTopic
name.TopicConnectionFactory.createTopicConnection()
Creates a topic connection with the default user identity.TopicConnectionFactory.createTopicConnection
(String userName, String password) Creates a topic connection with the specified user identity.TopicConnection.createTopicSession
(boolean transacted, int acknowledgeMode) Creates aTopicSession
object, specifyingtransacted
andacknowledgeMode
.XATopicConnection.createTopicSession
(boolean transacted, int acknowledgeMode) Creates aTopicSession
object.XAConnectionFactory.createXAConnection()
Creates anXAConnection
with the default user identity.XAConnectionFactory.createXAConnection
(String userName, String password) Creates anXAConnection
with the specified user identity.XAQueueConnectionFactory.createXAQueueConnection()
Creates an XA queue connection with the default user identity.XAQueueConnectionFactory.createXAQueueConnection
(String userName, String password) Creates an XA queue connection with the specified user identity.XAQueueConnection.createXAQueueSession()
Creates anXAQueueSession
object.XAConnection.createXASession()
Creates anXASession
object.XATopicConnectionFactory.createXATopicConnection()
Creates an XA topic connection with the default user identity.XATopicConnectionFactory.createXATopicConnection
(String userName, String password) Creates an XA topic connection with the specified user identity.XATopicConnection.createXATopicSession()
Creates anXATopicSession
object.void
TemporaryQueue.delete()
Deletes this temporary queue.void
TemporaryTopic.delete()
Deletes this temporary topic.int
Session.getAcknowledgeMode()
Returns the acknowledgement mode of the session.<T> T
Returns the message body as an object of the specified type.long
BytesMessage.getBodyLength()
Gets the number of bytes of the message body when the message is in read-only mode.boolean
MapMessage.getBoolean
(String name) Returns theboolean
value with the specified name.boolean
Message.getBooleanProperty
(String name) Returns the value of theboolean
property with the specified name.byte
Returns thebyte
value with the specified name.byte
Message.getByteProperty
(String name) Returns the value of thebyte
property with the specified name.byte[]
Returns the byte array value with the specified name.char
Returns the Unicode character value with the specified name.Connection.getClientID()
Gets the client identifier for this connection.long
MessageProducer.getDeliveryDelay()
Gets the minimum length of time in milliseconds that must elapse after a message is sent before the Jakarta Messaging provider may deliver the message to a consumer.int
MessageProducer.getDeliveryMode()
Gets the producer's default delivery mode.MessageProducer.getDestination()
Gets the destination associated with thisMessageProducer
.boolean
MessageProducer.getDisableMessageID()
Gets an indication of whether message IDs are disabled.boolean
MessageProducer.getDisableMessageTimestamp()
Gets an indication of whether message timestamps are disabled.double
Returns thedouble
value with the specified name.double
Message.getDoubleProperty
(String name) Returns the value of thedouble
property with the specified name.QueueBrowser.getEnumeration()
Gets an enumeration for browsing the current queue messages in the order they would be received.Connection.getExceptionListener()
Gets theExceptionListener
object for this connection.float
Returns thefloat
value with the specified name.float
Message.getFloatProperty
(String name) Returns the value of thefloat
property with the specified name.int
Returns theint
value with the specified name.int
Message.getIntProperty
(String name) Returns the value of theint
property with the specified name.Message.getJMSCorrelationID()
Gets the correlation ID for the message.byte[]
Message.getJMSCorrelationIDAsBytes()
Gets the correlation ID as an array of bytes for the message.int
Message.getJMSDeliveryMode()
Gets theDeliveryMode
value specified for this message.long
Message.getJMSDeliveryTime()
Gets the message's delivery time value.Message.getJMSDestination()
Gets theDestination
object for this message.long
Message.getJMSExpiration()
Gets the message's expiration time.int
ConnectionMetaData.getJMSMajorVersion()
Gets the Jakarta Messaging major version number.Message.getJMSMessageID()
Gets the message ID.int
ConnectionMetaData.getJMSMinorVersion()
Gets the Jakarta Messaging minor version number.int
Message.getJMSPriority()
Gets the message priority level.ConnectionMetaData.getJMSProviderName()
Gets the Jakarta Messaging provider name.boolean
Message.getJMSRedelivered()
Gets an indication of whether this message is being redelivered.Message.getJMSReplyTo()
Gets theDestination
object to which a reply to this message should be sent.long
Message.getJMSTimestamp()
Gets the message timestamp.Message.getJMSType()
Gets the message type identifier supplied by the client when the message was sent.ConnectionMetaData.getJMSVersion()
Gets the Jakarta Messaging API version.ConnectionMetaData.getJMSXPropertyNames()
Gets an enumeration of the JMSX property names.long
Returns thelong
value with the specified name.long
Message.getLongProperty
(String name) Returns the value of thelong
property with the specified name.MapMessage.getMapNames()
Returns anEnumeration
of all the names in theMapMessage
object.MessageConsumer.getMessageListener()
Gets theMessageConsumer
'sMessageListener
.Session.getMessageListener()
Returns the session's distinguished message listener (optional).MessageConsumer.getMessageSelector()
Gets this message consumer's message selector expression.QueueBrowser.getMessageSelector()
Gets this queue browser's message selector expression.Connection.getMetaData()
Gets the metadata for this connection.boolean
TopicSubscriber.getNoLocal()
Gets theNoLocal
attribute for this subscriber.Returns the value of the object with the specified name.ObjectMessage.getObject()
Gets the serializable object containing this message's data.Message.getObjectProperty
(String name) Returns the value of the Java object property with the specified name.int
MessageProducer.getPriority()
Gets the producer's default priority.Message.getPropertyNames()
Returns anEnumeration
of all the property names.int
ConnectionMetaData.getProviderMajorVersion()
Gets the Jakarta Messaging provider major version number.int
ConnectionMetaData.getProviderMinorVersion()
Gets the Jakarta Messaging provider minor version number.ConnectionMetaData.getProviderVersion()
Gets the Jakarta Messaging provider version.QueueBrowser.getQueue()
Gets the queue associated with this queue browser.QueueReceiver.getQueue()
Gets theQueue
associated with this queue receiver.QueueSender.getQueue()
Gets the queue associated with thisQueueSender
.Queue.getQueueName()
Gets the name of this queue.XAQueueSession.getQueueSession()
Gets the queue session associated with thisXAQueueSession
.ServerSessionPool.getServerSession()
Return a server session from the pool.ConnectionConsumer.getServerSessionPool()
Gets the server session pool associated with this connection consumer.ServerSession.getSession()
Return theServerSession
'sSession
.XASession.getSession()
Gets the session associated with thisXASession
.short
Returns theshort
value with the specified name.short
Message.getShortProperty
(String name) Returns the value of theshort
property with the specified name.Returns theString
value with the specified name.Message.getStringProperty
(String name) Returns the value of theString
property with the specified name.TextMessage.getText()
Gets the string containing this message's data.long
MessageProducer.getTimeToLive()
Gets the default length of time in milliseconds from its dispatch time that a produced message should be retained by the message system.TopicPublisher.getTopic()
Gets the topic associated with thisTopicPublisher
.TopicSubscriber.getTopic()
Gets theTopic
associated with this subscriber.Topic.getTopicName()
Gets the name of this topic.XATopicSession.getTopicSession()
Gets the topic session associated with thisXATopicSession
.boolean
Session.getTransacted()
Indicates whether the session is in transacted mode.boolean
XASession.getTransacted()
Indicates whether the session is in transacted mode.boolean
Message.isBodyAssignableTo
(Class c) Returns whether the message body is capable of being assigned to the specified type.boolean
MapMessage.itemExists
(String name) Indicates whether an item exists in thisMapMessage
object.boolean
Message.propertyExists
(String name) Indicates whether a property value exists.void
Publishes a message to the topic.void
Publishes a message to the topic, specifying delivery mode, priority, and time to live.void
Publishes a message to a topic for an unidentified message producer.void
TopicPublisher.publish
(Topic topic, Message message, int deliveryMode, int priority, long timeToLive) Publishes a message to a topic for an unidentified message producer, specifying delivery mode, priority and time to live.boolean
BytesMessage.readBoolean()
Reads aboolean
from the bytes message stream.boolean
StreamMessage.readBoolean()
Reads aboolean
from the stream message.byte
BytesMessage.readByte()
Reads a signed 8-bit value from the bytes message stream.byte
StreamMessage.readByte()
Reads abyte
value from the stream message.int
BytesMessage.readBytes
(byte[] value) Reads a byte array from the bytes message stream.int
BytesMessage.readBytes
(byte[] value, int length) Reads a portion of the bytes message stream.int
StreamMessage.readBytes
(byte[] value) Reads a byte array field from the stream message into the specifiedbyte[]
object (the read buffer).char
BytesMessage.readChar()
Reads a Unicode character value from the bytes message stream.char
StreamMessage.readChar()
Reads a Unicode character value from the stream message.double
BytesMessage.readDouble()
Reads adouble
from the bytes message stream.double
StreamMessage.readDouble()
Reads adouble
from the stream message.float
BytesMessage.readFloat()
Reads afloat
from the bytes message stream.float
StreamMessage.readFloat()
Reads afloat
from the stream message.int
BytesMessage.readInt()
Reads a signed 32-bit integer from the bytes message stream.int
StreamMessage.readInt()
Reads a 32-bit integer from the stream message.long
BytesMessage.readLong()
Reads a signed 64-bit integer from the bytes message stream.long
StreamMessage.readLong()
Reads a 64-bit integer from the stream message.StreamMessage.readObject()
Reads an object from the stream message.short
BytesMessage.readShort()
Reads a signed 16-bit number from the bytes message stream.short
StreamMessage.readShort()
Reads a 16-bit integer from the stream message.StreamMessage.readString()
Reads aString
from the stream message.int
BytesMessage.readUnsignedByte()
Reads an unsigned 8-bit number from the bytes message stream.int
BytesMessage.readUnsignedShort()
Reads an unsigned 16-bit number from the bytes message stream.BytesMessage.readUTF()
Reads a string that has been encoded using a modified UTF-8 format from the bytes message stream.MessageConsumer.receive()
Receives the next message produced for this message consumer.MessageConsumer.receive
(long timeout) Receives the next message that arrives within the specified timeout interval.MessageConsumer.receiveNoWait()
Receives the next message if one is immediately available.void
Session.recover()
Stops message delivery in this session, and restarts message delivery with the oldest unacknowledged message.Sends a request and waits for a reply.Sends a request and waits for a reply.void
BytesMessage.reset()
Puts the message body in read-only mode and repositions the stream of bytes to the beginning.void
StreamMessage.reset()
Puts the message body in read-only mode and repositions the stream to the beginning.void
Session.rollback()
Rolls back any messages done in this transaction and releases any locks currently held.void
XASession.rollback()
Throws aTransactionInProgressException
, since it should not be called for anXASession
object.void
MessageProducer.send
(Destination destination, Message message) Sends a message to a destination for an unidentified message producer using theMessageProducer
's default delivery mode, priority, and time to live.void
MessageProducer.send
(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) Sends a message to a destination for an unidentified message producer, specifying delivery mode, priority and time to live.void
MessageProducer.send
(Destination destination, Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener) Sends a message to a destination for an unidentified message producer, specifying delivery mode, priority and time to live, performing part of the work involved in sending the message in a separate thread and notifying the specified CompletionListener when the operation has completed.void
MessageProducer.send
(Destination destination, Message message, CompletionListener completionListener) Sends a message to a destination for an unidentified message producer, using theMessageProducer
's default delivery mode, priority, and time to live, performing part of the work involved in sending the message in a separate thread and notifying the specified CompletionListener when the operation has completed.void
Sends a message using theMessageProducer
's default delivery mode, priority, and time to live.void
Sends a message, specifying delivery mode, priority, and time to live.void
MessageProducer.send
(Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener) Sends a message, specifying delivery mode, priority and time to live, performing part of the work involved in sending the message in a separate thread and notifying the specified CompletionListener when the operation has completed.void
MessageProducer.send
(Message message, CompletionListener completionListener) Sends a message using theMessageProducer
's default delivery mode, priority, and time to live, performing part of the work involved in sending the message in a separate thread and notifying the specified CompletionListener when the operation has completed.void
Sends a message to the queue.void
Sends a message to the queue, specifying delivery mode, priority, and time to live.void
Sends a message to a queue for an unidentified message producer.void
Sends a message to a queue for an unidentified message producer, specifying delivery mode, priority and time to live.void
MapMessage.setBoolean
(String name, boolean value) Sets aboolean
value with the specified name into the Map.void
Message.setBooleanProperty
(String name, boolean value) Sets aboolean
property value with the specified name into the message.void
Sets abyte
value with the specified name into the Map.void
Message.setByteProperty
(String name, byte value) Sets abyte
property value with the specified name into the message.void
Sets a byte array value with the specified name into the Map.void
Sets a portion of the byte array value with the specified name into the Map.void
Sets a Unicode character value with the specified name into the Map.void
Connection.setClientID
(String clientID) Sets the client identifier for this connection.void
MessageProducer.setDeliveryDelay
(long deliveryDelay) Sets the minimum length of time in milliseconds that must elapse after a message is sent before the Jakarta Messaging provider may deliver the message to a consumer.void
MessageProducer.setDeliveryMode
(int deliveryMode) Sets the producer's default delivery mode.void
MessageProducer.setDisableMessageID
(boolean value) Specify whether message IDs may be disabled.void
MessageProducer.setDisableMessageTimestamp
(boolean value) Specify whether message timestamps may be disabled.void
Sets adouble
value with the specified name into the Map.void
Message.setDoubleProperty
(String name, double value) Sets adouble
property value with the specified name into the message.void
Connection.setExceptionListener
(ExceptionListener listener) Sets an exception listener for this connection.void
Sets afloat
value with the specified name into the Map.void
Message.setFloatProperty
(String name, float value) Sets afloat
property value with the specified name into the message.void
Sets anint
value with the specified name into the Map.void
Message.setIntProperty
(String name, int value) Sets anint
property value with the specified name into the message.void
Message.setJMSCorrelationID
(String correlationID) Sets the correlation ID for the message.void
Message.setJMSCorrelationIDAsBytes
(byte[] correlationID) Sets the correlation ID as an array of bytes for the message.void
Message.setJMSDeliveryMode
(int deliveryMode) Sets theDeliveryMode
value for this message.void
Message.setJMSDeliveryTime
(long deliveryTime) Sets the message's delivery time value.void
Message.setJMSDestination
(Destination destination) Sets theDestination
object for this message.void
Message.setJMSExpiration
(long expiration) Sets the message's expiration value.void
Message.setJMSMessageID
(String id) Sets the message ID.void
Message.setJMSPriority
(int priority) Sets the priority level for this message.void
Message.setJMSRedelivered
(boolean redelivered) Specifies whether this message is being redelivered.void
Message.setJMSReplyTo
(Destination replyTo) Sets theDestination
object to which a reply to this message should be sent.void
Message.setJMSTimestamp
(long timestamp) Sets the message timestamp.void
Message.setJMSType
(String type) Sets the message type.void
Sets along
value with the specified name into the Map.void
Message.setLongProperty
(String name, long value) Sets along
property value with the specified name into the message.void
MessageConsumer.setMessageListener
(MessageListener listener) Sets theMessageConsumer
'sMessageListener
.void
Session.setMessageListener
(MessageListener listener) Sets the session's distinguished message listener (optional).void
Sets an object value with the specified name into the Map.void
ObjectMessage.setObject
(Serializable object) Sets the serializable object containing this message's data.void
Message.setObjectProperty
(String name, Object value) Sets a Java object property value with the specified name into the message.void
MessageProducer.setPriority
(int defaultPriority) Sets the producer's default priority.void
Sets ashort
value with the specified name into the Map.void
Message.setShortProperty
(String name, short value) Sets ashort
property value with the specified name into the message.void
Sets aString
value with the specified name into the Map.void
Message.setStringProperty
(String name, String value) Sets aString
property value with the specified name into the message.void
Sets the string containing this message's data.void
MessageProducer.setTimeToLive
(long timeToLive) Sets the default length of time in milliseconds from its dispatch time that a produced message should be retained by the message system.void
Connection.start()
Starts (or restarts) a connection's delivery of incoming messages.void
ServerSession.start()
Cause theSession
'srun
method to be called to process messages that were just assigned to it.void
Connection.stop()
Temporarily stops a connection's delivery of incoming messages.void
Session.unsubscribe
(String name) Unsubscribes a durable subscription that has been created by a client.void
TopicSession.unsubscribe
(String name) Unsubscribes a durable subscription that has been created by a client.void
BytesMessage.writeBoolean
(boolean value) Writes aboolean
to the bytes message stream as a 1-byte value.void
StreamMessage.writeBoolean
(boolean value) Writes aboolean
to the stream message.void
BytesMessage.writeByte
(byte value) Writes abyte
to the bytes message stream as a 1-byte value.void
StreamMessage.writeByte
(byte value) Writes abyte
to the stream message.void
BytesMessage.writeBytes
(byte[] value) Writes a byte array to the bytes message stream.void
BytesMessage.writeBytes
(byte[] value, int offset, int length) Writes a portion of a byte array to the bytes message stream.void
StreamMessage.writeBytes
(byte[] value) Writes a byte array field to the stream message.void
StreamMessage.writeBytes
(byte[] value, int offset, int length) Writes a portion of a byte array as a byte array field to the stream message.void
BytesMessage.writeChar
(char value) Writes achar
to the bytes message stream as a 2-byte value, high byte first.void
StreamMessage.writeChar
(char value) Writes achar
to the stream message.void
BytesMessage.writeDouble
(double value) Converts thedouble
argument to along
using thedoubleToLongBits
method in classDouble
, and then writes thatlong
value to the bytes message stream as an 8-byte quantity, high byte first.void
StreamMessage.writeDouble
(double value) Writes adouble
to the stream message.void
BytesMessage.writeFloat
(float value) Converts thefloat
argument to anint
using thefloatToIntBits
method in classFloat
, and then writes thatint
value to the bytes message stream as a 4-byte quantity, high byte first.void
StreamMessage.writeFloat
(float value) Writes afloat
to the stream message.void
BytesMessage.writeInt
(int value) Writes anint
to the bytes message stream as four bytes, high byte first.void
StreamMessage.writeInt
(int value) Writes anint
to the stream message.void
BytesMessage.writeLong
(long value) Writes along
to the bytes message stream as eight bytes, high byte first.void
StreamMessage.writeLong
(long value) Writes along
to the stream message.void
BytesMessage.writeObject
(Object value) Writes an object to the bytes message stream.void
StreamMessage.writeObject
(Object value) Writes an object to the stream message.void
BytesMessage.writeShort
(short value) Writes ashort
to the bytes message stream as two bytes, high byte first.void
StreamMessage.writeShort
(short value) Writes ashort
to the stream message.void
StreamMessage.writeString
(String value) Writes aString
to the stream message.void
Writes a string to the bytes message stream using UTF-8 encoding in a machine-independent manner.ModifierConstructorDescriptionQueueRequestor
(QueueSession session, Queue queue) Constructor for theQueueRequestor
class.TopicRequestor
(TopicSession session, Topic topic) Constructor for theTopicRequestor
class.