Uses of Class
jakarta.jms.JMSException
Packages that use 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
Subclasses of JMSException in jakarta.jmsModifier and TypeClassDescriptionclassThis 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.classThis exception must be thrown when a client attempts to set a connection's client ID to a value that is rejected by a provider.classThis exception must be thrown when a destination either is not understood by a provider or is no longer valid.classThis exception must be thrown when a Jakarta Messaging client attempts to give a provider a message selector with invalid syntax.classThis exception must be thrown when a provider rejects a user name/password submitted by a client.classThis exception must be thrown when an unexpected end of stream has been reached when aStreamMessageorBytesMessageis being read.classThis 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.classThis exception must be thrown when a Jakarta Messaging client attempts to read a write-only message.classThis exception must be thrown when a Jakarta Messaging client attempts to write to a read-only message.classThis exception is thrown when a provider is unable to allocate the resources required by a method.classThis exception is thrown when an operation is invalid because a transaction is in progress.classThis exception must be thrown when a call toSession.commitresults in a rollback of the current transaction.Methods in jakarta.jms with parameters of type JMSExceptionModifier and TypeMethodDescriptionvoidExceptionListener.onException(JMSException exception) Notifies user of a Jakarta Messaging exception.Methods in jakarta.jms that throw JMSExceptionModifier and TypeMethodDescriptionvoidMessage.acknowledge()Acknowledges all consumed messages of the session of this consumed message.voidMessage.clearBody()Clears out the message body.voidMessage.clearProperties()Clears a message's properties.voidConnection.close()Closes the connection.voidConnectionConsumer.close()Closes the connection consumer.voidMessageConsumer.close()Closes the message consumer.voidMessageProducer.close()Closes the message producer.voidQueueBrowser.close()Closes theQueueBrowser.voidQueueRequestor.close()Closes theQueueRequestorand its session.voidSession.close()Closes the session.voidTopicRequestor.close()Closes theTopicRequestorand its session.voidSession.commit()Commits all messages done in this transaction and releases any locks currently held.voidXASession.commit()Throws aTransactionInProgressException, since it should not be called for anXASessionobject.QueueSession.createBrowser(Queue queue) Creates aQueueBrowserobject to peek at the messages on the specified queue.QueueSession.createBrowser(Queue queue, String messageSelector) Creates aQueueBrowserobject to peek at the messages on the specified queue using a message selector.Session.createBrowser(Queue queue) Creates aQueueBrowserobject to peek at the messages on the specified queue.Session.createBrowser(Queue queue, String messageSelector) Creates aQueueBrowserobject to peek at the messages on the specified queue using a message selector.Session.createBytesMessage()Creates aBytesMessageobject.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 aMessageConsumerfor the specified destination.Session.createConsumer(Destination destination, String messageSelector) Creates aMessageConsumerfor the specified destination, using a message selector.Session.createConsumer(Destination destination, String messageSelector, boolean noLocal) Creates aMessageConsumerfor the specified destination, specifying a message selector and thenoLocalparameter.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 thenoLocalparameter, 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 thenoLocalparameter, 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 thenoLocalparameter, and creates a consumer on that durable subscription.Session.createMapMessage()Creates aMapMessageobject.Session.createMessage()Creates aMessageobject.Session.createObjectMessage()Creates anObjectMessageobject.Session.createObjectMessage(Serializable object) Creates an initializedObjectMessageobject.Session.createProducer(Destination destination) Creates aMessageProducerto 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 aQueuename.Session.createQueue(String queueName) Creates aQueueobject 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 aQueueSessionobject, specifyingtransactedandacknowledgeMode.XAQueueConnection.createQueueSession(boolean transacted, int acknowledgeMode) Creates aQueueSessionobject.QueueSession.createReceiver(Queue queue) Creates aQueueReceiverobject to receive messages from the specified queue.QueueSession.createReceiver(Queue queue, String messageSelector) Creates aQueueReceiverobject to receive messages from the specified queue using a message selector.QueueSession.createSender(Queue queue) Creates aQueueSenderobject to send messages to the specified queue.Connection.createSession()Creates aSessionobject, specifying no arguments.Connection.createSession(boolean transacted, int acknowledgeMode) Creates aSessionobject, specifyingtransactedandacknowledgeMode.Connection.createSession(int sessionMode) Creates aSessionobject, specifyingsessionMode.XAConnection.createSession(boolean transacted, int acknowledgeMode) Creates anSessionobject.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 thenoLocalparameter, 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 aStreamMessageobject.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 aTemporaryQueueobject.Session.createTemporaryQueue()Creates aTemporaryQueueobject.Session.createTemporaryTopic()Creates aTemporaryTopicobject.TopicSession.createTemporaryTopic()Creates aTemporaryTopicobject.Session.createTextMessage()Creates aTextMessageobject.Session.createTextMessage(String text) Creates an initializedTextMessageobject.Session.createTopic(String topicName) Creates aTopicobject which encapsulates a specified provider-specific topic name.TopicSession.createTopic(String topicName) Creates a topic identity given aTopicname.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 aTopicSessionobject, specifyingtransactedandacknowledgeMode.XATopicConnection.createTopicSession(boolean transacted, int acknowledgeMode) Creates aTopicSessionobject.XAConnectionFactory.createXAConnection()Creates anXAConnectionwith the default user identity.XAConnectionFactory.createXAConnection(String userName, String password) Creates anXAConnectionwith 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 anXAQueueSessionobject.XAConnection.createXASession()Creates anXASessionobject.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 anXATopicSessionobject.voidTemporaryQueue.delete()Deletes this temporary queue.voidTemporaryTopic.delete()Deletes this temporary topic.intSession.getAcknowledgeMode()Returns the acknowledgement mode of the session.<T> TReturns the message body as an object of the specified type.longBytesMessage.getBodyLength()Gets the number of bytes of the message body when the message is in read-only mode.booleanMapMessage.getBoolean(String name) Returns thebooleanvalue with the specified name.booleanMessage.getBooleanProperty(String name) Returns the value of thebooleanproperty with the specified name.byteReturns thebytevalue with the specified name.byteMessage.getByteProperty(String name) Returns the value of thebyteproperty with the specified name.byte[]Returns the byte array value with the specified name.charReturns the Unicode character value with the specified name.Connection.getClientID()Gets the client identifier for this connection.longMessageProducer.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.intMessageProducer.getDeliveryMode()Gets the producer's default delivery mode.MessageProducer.getDestination()Gets the destination associated with thisMessageProducer.booleanMessageProducer.getDisableMessageID()Gets an indication of whether message IDs are disabled.booleanMessageProducer.getDisableMessageTimestamp()Gets an indication of whether message timestamps are disabled.doubleReturns thedoublevalue with the specified name.doubleMessage.getDoubleProperty(String name) Returns the value of thedoubleproperty 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 theExceptionListenerobject for this connection.floatReturns thefloatvalue with the specified name.floatMessage.getFloatProperty(String name) Returns the value of thefloatproperty with the specified name.intReturns theintvalue with the specified name.intMessage.getIntProperty(String name) Returns the value of theintproperty 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.intMessage.getJMSDeliveryMode()Gets theDeliveryModevalue specified for this message.longMessage.getJMSDeliveryTime()Gets the message's delivery time value.Message.getJMSDestination()Gets theDestinationobject for this message.longMessage.getJMSExpiration()Gets the message's expiration time.intConnectionMetaData.getJMSMajorVersion()Gets the Jakarta Messaging major version number.Message.getJMSMessageID()Gets the message ID.intConnectionMetaData.getJMSMinorVersion()Gets the Jakarta Messaging minor version number.intMessage.getJMSPriority()Gets the message priority level.ConnectionMetaData.getJMSProviderName()Gets the Jakarta Messaging provider name.booleanMessage.getJMSRedelivered()Gets an indication of whether this message is being redelivered.Message.getJMSReplyTo()Gets theDestinationobject to which a reply to this message should be sent.longMessage.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.longReturns thelongvalue with the specified name.longMessage.getLongProperty(String name) Returns the value of thelongproperty with the specified name.MapMessage.getMapNames()Returns anEnumerationof all the names in theMapMessageobject.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.booleanTopicSubscriber.getNoLocal()Gets theNoLocalattribute 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.intMessageProducer.getPriority()Gets the producer's default priority.Message.getPropertyNames()Returns anEnumerationof all the property names.intConnectionMetaData.getProviderMajorVersion()Gets the Jakarta Messaging provider major version number.intConnectionMetaData.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 theQueueassociated 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.shortReturns theshortvalue with the specified name.shortMessage.getShortProperty(String name) Returns the value of theshortproperty with the specified name.Returns theStringvalue with the specified name.Message.getStringProperty(String name) Returns the value of theStringproperty with the specified name.TextMessage.getText()Gets the string containing this message's data.longMessageProducer.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 theTopicassociated with this subscriber.Topic.getTopicName()Gets the name of this topic.XATopicSession.getTopicSession()Gets the topic session associated with thisXATopicSession.booleanSession.getTransacted()Indicates whether the session is in transacted mode.booleanXASession.getTransacted()Indicates whether the session is in transacted mode.booleanMessage.isBodyAssignableTo(Class c) Returns whether the message body is capable of being assigned to the specified type.booleanMapMessage.itemExists(String name) Indicates whether an item exists in thisMapMessageobject.booleanMessage.propertyExists(String name) Indicates whether a property value exists.voidPublishes a message to the topic.voidPublishes a message to the topic, specifying delivery mode, priority, and time to live.voidPublishes a message to a topic for an unidentified message producer.voidTopicPublisher.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.booleanBytesMessage.readBoolean()Reads abooleanfrom the bytes message stream.booleanStreamMessage.readBoolean()Reads abooleanfrom the stream message.byteBytesMessage.readByte()Reads a signed 8-bit value from the bytes message stream.byteStreamMessage.readByte()Reads abytevalue from the stream message.intBytesMessage.readBytes(byte[] value) Reads a byte array from the bytes message stream.intBytesMessage.readBytes(byte[] value, int length) Reads a portion of the bytes message stream.intStreamMessage.readBytes(byte[] value) Reads a byte array field from the stream message into the specifiedbyte[]object (the read buffer).charBytesMessage.readChar()Reads a Unicode character value from the bytes message stream.charStreamMessage.readChar()Reads a Unicode character value from the stream message.doubleBytesMessage.readDouble()Reads adoublefrom the bytes message stream.doubleStreamMessage.readDouble()Reads adoublefrom the stream message.floatBytesMessage.readFloat()Reads afloatfrom the bytes message stream.floatStreamMessage.readFloat()Reads afloatfrom the stream message.intBytesMessage.readInt()Reads a signed 32-bit integer from the bytes message stream.intStreamMessage.readInt()Reads a 32-bit integer from the stream message.longBytesMessage.readLong()Reads a signed 64-bit integer from the bytes message stream.longStreamMessage.readLong()Reads a 64-bit integer from the stream message.StreamMessage.readObject()Reads an object from the stream message.shortBytesMessage.readShort()Reads a signed 16-bit number from the bytes message stream.shortStreamMessage.readShort()Reads a 16-bit integer from the stream message.StreamMessage.readString()Reads aStringfrom the stream message.intBytesMessage.readUnsignedByte()Reads an unsigned 8-bit number from the bytes message stream.intBytesMessage.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.voidSession.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.voidBytesMessage.reset()Puts the message body in read-only mode and repositions the stream of bytes to the beginning.voidStreamMessage.reset()Puts the message body in read-only mode and repositions the stream to the beginning.voidSession.rollback()Rolls back any messages done in this transaction and releases any locks currently held.voidXASession.rollback()Throws aTransactionInProgressException, since it should not be called for anXASessionobject.voidMessageProducer.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.voidMessageProducer.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.voidMessageProducer.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.voidMessageProducer.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.voidSends a message using theMessageProducer's default delivery mode, priority, and time to live.voidSends a message, specifying delivery mode, priority, and time to live.voidMessageProducer.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.voidMessageProducer.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.voidSends a message to the queue.voidSends a message to the queue, specifying delivery mode, priority, and time to live.voidSends a message to a queue for an unidentified message producer.voidSends a message to a queue for an unidentified message producer, specifying delivery mode, priority and time to live.voidMapMessage.setBoolean(String name, boolean value) Sets abooleanvalue with the specified name into the Map.voidMessage.setBooleanProperty(String name, boolean value) Sets abooleanproperty value with the specified name into the message.voidSets abytevalue with the specified name into the Map.voidMessage.setByteProperty(String name, byte value) Sets abyteproperty value with the specified name into the message.voidSets a byte array value with the specified name into the Map.voidSets a portion of the byte array value with the specified name into the Map.voidSets a Unicode character value with the specified name into the Map.voidConnection.setClientID(String clientID) Sets the client identifier for this connection.voidMessageProducer.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.voidMessageProducer.setDeliveryMode(int deliveryMode) Sets the producer's default delivery mode.voidMessageProducer.setDisableMessageID(boolean value) Specify whether message IDs may be disabled.voidMessageProducer.setDisableMessageTimestamp(boolean value) Specify whether message timestamps may be disabled.voidSets adoublevalue with the specified name into the Map.voidMessage.setDoubleProperty(String name, double value) Sets adoubleproperty value with the specified name into the message.voidConnection.setExceptionListener(ExceptionListener listener) Sets an exception listener for this connection.voidSets afloatvalue with the specified name into the Map.voidMessage.setFloatProperty(String name, float value) Sets afloatproperty value with the specified name into the message.voidSets anintvalue with the specified name into the Map.voidMessage.setIntProperty(String name, int value) Sets anintproperty value with the specified name into the message.voidMessage.setJMSCorrelationID(String correlationID) Sets the correlation ID for the message.voidMessage.setJMSCorrelationIDAsBytes(byte[] correlationID) Sets the correlation ID as an array of bytes for the message.voidMessage.setJMSDeliveryMode(int deliveryMode) Sets theDeliveryModevalue for this message.voidMessage.setJMSDeliveryTime(long deliveryTime) Sets the message's delivery time value.voidMessage.setJMSDestination(Destination destination) Sets theDestinationobject for this message.voidMessage.setJMSExpiration(long expiration) Sets the message's expiration value.voidMessage.setJMSMessageID(String id) Sets the message ID.voidMessage.setJMSPriority(int priority) Sets the priority level for this message.voidMessage.setJMSRedelivered(boolean redelivered) Specifies whether this message is being redelivered.voidMessage.setJMSReplyTo(Destination replyTo) Sets theDestinationobject to which a reply to this message should be sent.voidMessage.setJMSTimestamp(long timestamp) Sets the message timestamp.voidMessage.setJMSType(String type) Sets the message type.voidSets alongvalue with the specified name into the Map.voidMessage.setLongProperty(String name, long value) Sets alongproperty value with the specified name into the message.voidMessageConsumer.setMessageListener(MessageListener listener) Sets theMessageConsumer'sMessageListener.voidSession.setMessageListener(MessageListener listener) Sets the session's distinguished message listener (optional).voidSets an object value with the specified name into the Map.voidObjectMessage.setObject(Serializable object) Sets the serializable object containing this message's data.voidMessage.setObjectProperty(String name, Object value) Sets a Java object property value with the specified name into the message.voidMessageProducer.setPriority(int defaultPriority) Sets the producer's default priority.voidSets ashortvalue with the specified name into the Map.voidMessage.setShortProperty(String name, short value) Sets ashortproperty value with the specified name into the message.voidSets aStringvalue with the specified name into the Map.voidMessage.setStringProperty(String name, String value) Sets aStringproperty value with the specified name into the message.voidSets the string containing this message's data.voidMessageProducer.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.voidConnection.start()Starts (or restarts) a connection's delivery of incoming messages.voidServerSession.start()Cause theSession'srunmethod to be called to process messages that were just assigned to it.voidConnection.stop()Temporarily stops a connection's delivery of incoming messages.voidSession.unsubscribe(String name) Unsubscribes a durable subscription that has been created by a client.voidTopicSession.unsubscribe(String name) Unsubscribes a durable subscription that has been created by a client.voidBytesMessage.writeBoolean(boolean value) Writes abooleanto the bytes message stream as a 1-byte value.voidStreamMessage.writeBoolean(boolean value) Writes abooleanto the stream message.voidBytesMessage.writeByte(byte value) Writes abyteto the bytes message stream as a 1-byte value.voidStreamMessage.writeByte(byte value) Writes abyteto the stream message.voidBytesMessage.writeBytes(byte[] value) Writes a byte array to the bytes message stream.voidBytesMessage.writeBytes(byte[] value, int offset, int length) Writes a portion of a byte array to the bytes message stream.voidStreamMessage.writeBytes(byte[] value) Writes a byte array field to the stream message.voidStreamMessage.writeBytes(byte[] value, int offset, int length) Writes a portion of a byte array as a byte array field to the stream message.voidBytesMessage.writeChar(char value) Writes acharto the bytes message stream as a 2-byte value, high byte first.voidStreamMessage.writeChar(char value) Writes acharto the stream message.voidBytesMessage.writeDouble(double value) Converts thedoubleargument to alongusing thedoubleToLongBitsmethod in classDouble, and then writes thatlongvalue to the bytes message stream as an 8-byte quantity, high byte first.voidStreamMessage.writeDouble(double value) Writes adoubleto the stream message.voidBytesMessage.writeFloat(float value) Converts thefloatargument to anintusing thefloatToIntBitsmethod in classFloat, and then writes thatintvalue to the bytes message stream as a 4-byte quantity, high byte first.voidStreamMessage.writeFloat(float value) Writes afloatto the stream message.voidBytesMessage.writeInt(int value) Writes anintto the bytes message stream as four bytes, high byte first.voidStreamMessage.writeInt(int value) Writes anintto the stream message.voidBytesMessage.writeLong(long value) Writes alongto the bytes message stream as eight bytes, high byte first.voidStreamMessage.writeLong(long value) Writes alongto the stream message.voidBytesMessage.writeObject(Object value) Writes an object to the bytes message stream.voidStreamMessage.writeObject(Object value) Writes an object to the stream message.voidBytesMessage.writeShort(short value) Writes ashortto the bytes message stream as two bytes, high byte first.voidStreamMessage.writeShort(short value) Writes ashortto the stream message.voidStreamMessage.writeString(String value) Writes aStringto the stream message.voidWrites a string to the bytes message stream using UTF-8 encoding in a machine-independent manner.Constructors in jakarta.jms that throw JMSExceptionModifierConstructorDescriptionQueueRequestor(QueueSession session, Queue queue) Constructor for theQueueRequestorclass.TopicRequestor(TopicSession session, Topic topic) Constructor for theTopicRequestorclass.