void
Acknowledges all consumed messages of the session of this consumed message.
void
Clears out the message body.
void
Clears a message's properties.
void
void
ConnectionConsumer.close()
Closes the connection consumer.
void
Closes the message consumer.
void
Closes the message producer.
void
void
Closes the QueueRequestor and its session.
void
void
Closes the TopicRequestor and its session.
void
Commits all messages done in this transaction and releases any locks currently held.
void
Throws a TransactionInProgressException, since it should not be called for an XASession object.
Creates a QueueBrowser object to peek at the messages on the specified queue.
Creates a QueueBrowser object to peek at the messages on the specified queue using a message selector.
Creates a QueueBrowser object to peek at the messages on the specified queue.
Creates a QueueBrowser object to peek at the messages on the specified queue using a message selector.
Creates a BytesMessage object.
Creates a connection with the default user identity.
Creates a connection with the specified user identity.
Creates a connection consumer for this connection (optional operation) on the specific destination.
Creates a connection consumer for this connection (optional operation).
Creates a connection consumer for this connection (optional operation).
Creates a MessageConsumer for the specified destination.
Creates a MessageConsumer for the specified destination, using a message selector.
Creates a MessageConsumer for the specified destination, specifying a message selector and the
noLocal parameter.
Creates a connection consumer for this connection (optional operation) on the specific topic using an unshared
durable subscription with the specified name.
Create a durable connection consumer for this connection (optional operation).
Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a
consumer on that durable subscription.
Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message
selector and the noLocal parameter, and creates a consumer on that durable subscription.
Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a
consumer on that durable subscription.
Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message
selector and the noLocal parameter, and creates a consumer on that durable subscription.
Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a
consumer on that durable subscription.
Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message
selector and the noLocal parameter, and creates a consumer on that durable subscription.
Creates a MapMessage object.
Creates a Message object.
Creates an ObjectMessage object.
Creates an initialized ObjectMessage object.
Creates a MessageProducer to send messages to the specified destination.
Creates a publisher for the specified topic.
Creates a queue identity given a Queue name.
Creates a Queue object which encapsulates a specified provider-specific queue name.
Creates a queue connection with the default user identity.
Creates a queue connection with the specified user identity.
Creates a QueueSession object, specifying transacted and acknowledgeMode.
Creates a QueueSession object.
Creates a QueueReceiver object to receive messages from the specified queue.
Creates a QueueReceiver object to receive messages from the specified queue using a message selector.
Creates a QueueSender object to send messages to the specified queue.
Creates a Session object, specifying no arguments.
Connection.createSession(boolean transacted,
int acknowledgeMode)
Creates a Session object, specifying transacted and acknowledgeMode.
Creates a Session object, specifying sessionMode.
XAConnection.createSession(boolean transacted,
int acknowledgeMode)
Creates an Session object.
Creates a connection consumer for this connection (optional operation) on the specific topic using a shared
non-durable subscription with the specified name.
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.
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.
Creates a connection consumer for this connection (optional operation) on the specific topic using a shared durable
subscription with the specified name.
Creates a shared durable subscription on the specified topic (if one does not already exist), specifying a message
selector and the noLocal parameter, and creates a consumer on that durable subscription.
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.
Creates a StreamMessage object.
Creates a nondurable subscriber to the specified topic.
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.
Creates a TemporaryQueue object.
Creates a TemporaryQueue object.
Creates a TemporaryTopic object.
Creates a TemporaryTopic object.
Creates a TextMessage object.
Creates an initialized TextMessage object.
Creates a Topic object which encapsulates a specified provider-specific topic name.
Creates a topic identity given a Topic name.
Creates a topic connection with the default user identity.
Creates a topic connection with the specified user identity.
Creates a TopicSession object, specifying transacted and acknowledgeMode.
Creates a TopicSession object.
Creates an XAConnection with the default user identity.
Creates an XAConnection with the specified user identity.
Creates an XA queue connection with the default user identity.
Creates an XA queue connection with the specified user identity.
Creates an XAQueueSession object.
Creates an XASession object.
Creates an XA topic connection with the default user identity.
Creates an XA topic connection with the specified user identity.
Creates an XATopicSession object.
void
Deletes this temporary queue.
void
Deletes this temporary topic.
int
Returns the acknowledgement mode of the session.
<T> T
Returns the message body as an object of the specified type.
long
Gets the number of bytes of the message body when the message is in read-only mode.
boolean
Returns the boolean value with the specified name.
boolean
Returns the value of the boolean property with the specified name.
byte
Returns the byte value with the specified name.
byte
Returns the value of the byte 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.
Gets the client identifier for this connection.
long
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
Gets the producer's default delivery mode.
Gets the destination associated with this MessageProducer.
boolean
Gets an indication of whether message IDs are disabled.
boolean
Gets an indication of whether message timestamps are disabled.
double
Returns the double value with the specified name.
double
Returns the value of the double property with the specified name.
Gets an enumeration for browsing the current queue messages in the order they would be received.
Gets the ExceptionListener object for this connection.
float
Returns the float value with the specified name.
float
Returns the value of the float property with the specified name.
int
Returns the int value with the specified name.
int
Returns the value of the int property with the specified name.
Gets the correlation ID for the message.
byte[]
Gets the correlation ID as an array of bytes for the message.
int
Gets the DeliveryMode value specified for this message.
long
Gets the message's delivery time value.
Gets the Destination object for this message.
long
Gets the message's expiration time.
int
Gets the Jakarta Messaging major version number.
int
Gets the Jakarta Messaging minor version number.
int
Gets the message priority level.
Gets the Jakarta Messaging provider name.
boolean
Gets an indication of whether this message is being redelivered.
Gets the Destination object to which a reply to this message should be sent.
long
Gets the message timestamp.
Gets the message type identifier supplied by the client when the message was sent.
Gets the Jakarta Messaging API version.
Gets an enumeration of the JMSX property names.
long
Returns the long value with the specified name.
long
Returns the value of the long property with the specified name.
Returns an Enumeration of all the names in the MapMessage object.
Gets the MessageConsumer's MessageListener.
Returns the session's distinguished message listener (optional).
Gets this message consumer's message selector expression.
Gets this queue browser's message selector expression.
Gets the metadata for this connection.
boolean
Gets the NoLocal attribute for this subscriber.
Returns the value of the object with the specified name.
Gets the serializable object containing this message's data.
Returns the value of the Java object property with the specified name.
int
Gets the producer's default priority.
Returns an Enumeration of all the property names.
int
Gets the Jakarta Messaging provider major version number.
int
Gets the Jakarta Messaging provider minor version number.
Gets the Jakarta Messaging provider version.
Gets the queue associated with this queue browser.
Gets the Queue associated with this queue receiver.
Gets the queue associated with this QueueSender.
Gets the name of this queue.
Gets the queue session associated with this XAQueueSession.
Return a server session from the pool.
Gets the server session pool associated with this connection consumer.
Return the ServerSession's Session.
Gets the session associated with this XASession.
short
Returns the short value with the specified name.
short
Returns the value of the short property with the specified name.
Returns the String value with the specified name.
Returns the value of the String property with the specified name.
Gets the string containing this message's data.
long
Gets the default length of time in milliseconds from its dispatch time that a produced message should be retained by
the message system.
Gets the topic associated with this TopicPublisher.
Gets the Topic associated with this subscriber.
Gets the name of this topic.
Gets the topic session associated with this XATopicSession.
boolean
Indicates whether the session is in transacted mode.
boolean
Indicates whether the session is in transacted mode.
boolean
Returns whether the message body is capable of being assigned to the specified type.
boolean
Indicates whether an item exists in this MapMessage object.
boolean
Indicates whether a property value exists.
void
Publishes a message to the topic.
void
TopicPublisher.publish(Message message,
int deliveryMode,
int priority,
long timeToLive)
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
Reads a boolean from the bytes message stream.
boolean
Reads a boolean from the stream message.
byte
Reads a signed 8-bit value from the bytes message stream.
byte
Reads a byte value from the stream message.
int
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
Reads a byte array field from the stream message into the specified byte[] object (the read buffer).
char
Reads a Unicode character value from the bytes message stream.
char
Reads a Unicode character value from the stream message.
double
Reads a double from the bytes message stream.
double
Reads a double from the stream message.
float
Reads a float from the bytes message stream.
float
Reads a float from the stream message.
int
Reads a signed 32-bit integer from the bytes message stream.
int
Reads a 32-bit integer from the stream message.
long
Reads a signed 64-bit integer from the bytes message stream.
long
Reads a 64-bit integer from the stream message.
Reads an object from the stream message.
short
Reads a signed 16-bit number from the bytes message stream.
short
Reads a 16-bit integer from the stream message.
Reads a String from the stream message.
int
Reads an unsigned 8-bit number from the bytes message stream.
int
Reads an unsigned 16-bit number from the bytes message stream.
Reads a string that has been encoded using a modified UTF-8 format from the bytes message stream.
Receives the next message produced for this message consumer.
MessageConsumer.receive(long timeout)
Receives the next message that arrives within the specified timeout interval.
Receives the next message if one is immediately available.
void
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
Puts the message body in read-only mode and repositions the stream of bytes to the beginning.
void
Puts the message body in read-only mode and repositions the stream to the beginning.
void
Rolls back any messages done in this transaction and releases any locks currently held.
void
Throws a TransactionInProgressException, since it should not be called for an XASession object.
void
Sends a message to a destination for an unidentified message producer using the MessageProducer'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
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
Sends a message to a destination for an unidentified message producer, using the MessageProducer'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 the MessageProducer's default delivery mode, priority, and time to live.
void
MessageProducer.send(Message message,
int deliveryMode,
int priority,
long timeToLive)
Sends a message, specifying delivery mode, priority, and time to live.
void
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
Sends a message using the MessageProducer'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
QueueSender.send(Message message,
int deliveryMode,
int priority,
long timeToLive)
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
QueueSender.send(Queue queue,
Message message,
int deliveryMode,
int priority,
long timeToLive)
Sends a message to a queue for an unidentified message producer, specifying delivery mode, priority and time to live.
void
Sets a boolean value with the specified name into the Map.
void
Sets a boolean property value with the specified name into the message.
void
Sets a byte value with the specified name into the Map.
void
Sets a byte property value with the specified name into the message.
void
Sets a byte array value with the specified name into the Map.
void
MapMessage.setBytes(String name,
byte[] value,
int offset,
int length)
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
Sets the client identifier for this connection.
void
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
Sets the producer's default delivery mode.
void
Specify whether message IDs may be disabled.
void
Specify whether message timestamps may be disabled.
void
Sets a double value with the specified name into the Map.
void
Sets a double property value with the specified name into the message.
void
Sets an exception listener for this connection.
void
Sets a float value with the specified name into the Map.
void
Sets a float property value with the specified name into the message.
void
Sets an int value with the specified name into the Map.
void
Sets an int property value with the specified name into the message.
void
Sets the correlation ID for the message.
void
Sets the correlation ID as an array of bytes for the message.
void
Sets the DeliveryMode value for this message.
void
Sets the message's delivery time value.
void
Sets the Destination object for this message.
void
Sets the message's expiration value.
void
void
Sets the priority level for this message.
void
Specifies whether this message is being redelivered.
void
Sets the Destination object to which a reply to this message should be sent.
void
Sets the message timestamp.
void
void
Sets a long value with the specified name into the Map.
void
Sets a long property value with the specified name into the message.
void
Sets the MessageConsumer's MessageListener.
void
Sets the session's distinguished message listener (optional).
void
Sets an object value with the specified name into the Map.
void
Sets the serializable object containing this message's data.
void
Sets a Java object property value with the specified name into the message.
void
Sets the producer's default priority.
void
Sets a short value with the specified name into the Map.
void
Sets a short property value with the specified name into the message.
void
Sets a String value with the specified name into the Map.
void
Sets a String property value with the specified name into the message.
void
Sets the string containing this message's data.
void
Sets the default length of time in milliseconds from its dispatch time that a produced message should be retained by
the message system.
void
Starts (or restarts) a connection's delivery of incoming messages.
void
Cause the Session's run method to be called to process messages that were just assigned to it.
void
Temporarily stops a connection's delivery of incoming messages.
void
Unsubscribes a durable subscription that has been created by a client.
void
Unsubscribes a durable subscription that has been created by a client.
void
Writes a boolean to the bytes message stream as a 1-byte value.
void
Writes a boolean to the stream message.
void
Writes a byte to the bytes message stream as a 1-byte value.
void
Writes a byte to the stream message.
void
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
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
Writes a char to the bytes message stream as a 2-byte value, high byte first.
void
Writes a char to the stream message.
void
Converts the double argument to a long using the doubleToLongBits method in class
Double, and then writes that long value to the bytes message stream as an 8-byte quantity, high byte
first.
void
Writes a double to the stream message.
void
Converts the float argument to an int using the floatToIntBits method in class Float,
and then writes that int value to the bytes message stream as a 4-byte quantity, high byte first.
void
Writes a float to the stream message.
void
Writes an int to the bytes message stream as four bytes, high byte first.
void
Writes an int to the stream message.
void
Writes a long to the bytes message stream as eight bytes, high byte first.
void
Writes a long to the stream message.
void
Writes an object to the bytes message stream.
void
Writes an object to the stream message.
void
Writes a short to the bytes message stream as two bytes, high byte first.
void
Writes a short to the stream message.
void
Writes a String to the stream message.
void
Writes a string to the bytes message stream using UTF-8 encoding in a machine-independent manner.