Uses of Class
jakarta.jms.JMSException
Packages that use JMSException
Package
Description
-
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. -
Uses of JMSException in org.apache.activemq.artemis.api.jms.management
Methods in org.apache.activemq.artemis.api.jms.management that throw JMSExceptionModifier and TypeMethodDescriptionstatic booleanJMSManagementHelper.hasOperationSucceeded(Message message) Returns whether the invocation of the management operation on the server resource succeeded..static booleanJMSManagementHelper.isAttributesResult(Message message) Returns whether the JMS message corresponds to the result of a management attribute value..static booleanJMSManagementHelper.isOperationResult(Message message) Returns whether the JMS message corresponds to the result of a management operation invocation..static voidJMSManagementHelper.putAttribute(Message message, String resourceName, String attribute) Stores a resource attribute in a JMS message to retrieve the value from the server resource.static voidJMSManagementHelper.putOperationInvocation(Message message, String resourceName, String operationName) Stores an operation invocation in a JMS message to invoke the corresponding operation the value from the server resource.static voidJMSManagementHelper.putOperationInvocation(Message message, String resourceName, String operationName, Object... parameters) Stores an operation invocation in a JMS message to invoke the corresponding operation the value from the server resource. -
Uses of JMSException in org.apache.activemq.artemis.jms.client
Methods in org.apache.activemq.artemis.jms.client that return JMSExceptionModifier and TypeMethodDescriptionstatic JMSExceptionJMSExceptionHelper.convertFromActiveMQException(ActiveMQException me) static JMSExceptionJMSExceptionHelper.convertFromActiveMQException(ActiveMQInterruptedException me) ActiveMQJMSClientBundle_impl.illegalDeliveryMode(int deliveryMode) ActiveMQJMSClientBundle.illegalDeliveryMode(int deliveryMode) Methods in org.apache.activemq.artemis.jms.client with parameters of type JMSExceptionModifier and TypeMethodDescriptionstatic JMSRuntimeExceptionJmsExceptionUtils.convertToRuntimeException(JMSException e) Converts instances of sub-classes ofJMSExceptioninto the corresponding sub-class ofJMSRuntimeException.Methods in org.apache.activemq.artemis.jms.client that throw JMSExceptionModifier and TypeMethodDescriptionvoidActiveMQSession.ackAllConsumers()voidActiveMQMessage.acknowledge()voidActiveMQConnection.authorize()voidActiveMQConnection.authorize(boolean validateClientId) protected final voidActiveMQConnection.checkClosed()protected voidActiveMQMessage.checkRead()protected voidActiveMQMessage.checkWrite()voidActiveMQBytesMessage.clearBody()voidActiveMQMapMessage.clearBody()voidActiveMQMessage.clearBody()voidActiveMQObjectMessage.clearBody()voidActiveMQStreamMessage.clearBody()voidActiveMQTextMessage.clearBody()voidActiveMQMessage.clearProperties()final voidActiveMQConnection.close()voidActiveMQMessageConsumer.close()voidActiveMQMessageProducer.close()voidActiveMQQueueBrowser.close()voidActiveMQSession.close()Closes the session.voidActiveMQSession.commit()Commits all messages done in this transaction and releases any locks currently held.ActiveMQSession.createBrowser(Queue queue) Creates aQueueBrowserobject to peek at the messages on the specified queue.ActiveMQSession.createBrowser(Queue queue, String filterString) Creates aQueueBrowserobject to peek at the messages on the specified queue using a message selector.ActiveMQSession.createBytesMessage()Creates aBytesMessageobject.ActiveMQConnectionFactory.createConnection()ActiveMQConnectionFactory.createConnection(String username, String password) ActiveMQConnection.createConnectionConsumer(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages) ActiveMQConnection.createConnectionConsumer(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages) ActiveMQConnection.createConnectionConsumer(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) protected ActiveMQConnectionActiveMQConnectionFactory.createConnectionInternal(String username, String password, boolean isXA, int type) ActiveMQSession.createConsumer(Destination destination) Creates aMessageConsumerfor the specified destination.ActiveMQSession.createConsumer(Destination destination, String messageSelector) Creates aMessageConsumerfor the specified destination, using a message selector.ActiveMQSession.createConsumer(Destination destination, String messageSelector, boolean noLocal) Creates aMessageConsumerfor the specified destination, specifying a message selector and thenoLocalparameter.ActiveMQConnection.createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) ActiveMQSession.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.ActiveMQSession.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.ActiveMQSession.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.ActiveMQSession.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.ActiveMQSession.createMapMessage()Creates aMapMessageobject.ActiveMQSession.createMessage()Creates aMessageobject.ActiveMQConnection.createNonXAQueueSession(boolean transacted, int acknowledgeMode) This internal method serves basically the Resource Adapter.ActiveMQConnection.createNonXASession(boolean transacted, int acknowledgeMode) This internal method serves basically the Resource Adapter.ActiveMQConnection.createNonXATopicSession(boolean transacted, int acknowledgeMode) This internal method serves basically the Resource Adapter.ActiveMQSession.createObjectMessage()Creates anObjectMessageobject.ActiveMQSession.createObjectMessage(Serializable object) Creates an initializedObjectMessageobject.ActiveMQSession.createProducer(Destination destination) Creates aMessageProducerto send messages to the specified destination.ActiveMQSession.createPublisher(Topic topic) Creates a publisher for the specified topic.ActiveMQSession.createQueue(String queueName) Creates a queue identity given aQueuename.ActiveMQConnectionFactory.createQueueConnection()ActiveMQConnectionFactory.createQueueConnection(String username, String password) ActiveMQConnection.createQueueSession(boolean transacted, int acknowledgeMode) ActiveMQSession.createReceiver(Queue queue) Creates aQueueReceiverobject to receive messages from the specified queue.ActiveMQSession.createReceiver(Queue queue, String messageSelector) Creates aQueueReceiverobject to receive messages from the specified queue using a message selector.ActiveMQSession.createSender(Queue queue) Creates aQueueSenderobject to send messages to the specified queue.ActiveMQConnection.createSession()ActiveMQConnection.createSession(boolean transacted, int acknowledgeMode) ActiveMQConnection.createSession(int sessionMode) protected final ActiveMQSessionActiveMQConnection.createSessionInternal(boolean isXA, boolean transacted, int acknowledgeMode, int type) ActiveMQConnection.createSharedConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) ActiveMQSession.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.ActiveMQSession.createSharedConsumer(Topic topic, String name, 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.ActiveMQConnection.createSharedDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) ActiveMQSession.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.ActiveMQSession.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.ActiveMQSession.createStreamMessage()Creates aStreamMessageobject.ActiveMQSession.createSubscriber(Topic topic) Creates a nondurable subscriber to the specified topic.ActiveMQSession.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.ActiveMQSession.createTemporaryQueue()Creates aTemporaryQueueobject.ActiveMQSession.createTemporaryTopic()Creates aTemporaryTopicobject.ActiveMQSession.createTextMessage()Creates aTextMessageobject.ActiveMQSession.createTextMessage(String text) Creates an initializedTextMessageobject.ActiveMQSession.createTopic(String topicName) Creates aTopicobject which encapsulates a specified provider-specific topic name.ActiveMQConnectionFactory.createTopicConnection()ActiveMQConnectionFactory.createTopicConnection(String username, String password) ActiveMQConnection.createTopicSession(boolean transacted, int acknowledgeMode) ActiveMQConnectionFactory.createXAConnection()ActiveMQConnectionFactory.createXAConnection(String username, String password) ActiveMQConnectionFactory.createXAQueueConnection()ActiveMQConnectionFactory.createXAQueueConnection(String username, String password) ActiveMQXAConnection.createXAQueueSession()ActiveMQXAConnection.createXASession()ActiveMQConnectionFactory.createXATopicConnection()ActiveMQConnectionFactory.createXATopicConnection(String username, String password) ActiveMQXAConnection.createXATopicSession()voidActiveMQDestination.delete()voidActiveMQSession.deleteTemporaryQueue(ActiveMQDestination tempQueue) voidActiveMQSession.deleteTemporaryTopic(ActiveMQDestination tempTopic) intActiveMQSession.getAcknowledgeMode()Returns the acknowledgement mode of the session.<T> TlongActiveMQBytesMessage.getBodyLength()booleanActiveMQMapMessage.getBoolean(String name) booleanActiveMQMessage.getBooleanProperty(String name) bytebyteActiveMQMessage.getByteProperty(String name) byte[]charActiveMQConnection.getClientID()longActiveMQMessageProducer.getDeliveryDelay()intActiveMQMessageProducer.getDeliveryMode()ActiveMQMessageProducer.getDestination()booleanActiveMQMessageProducer.getDisableMessageID()booleanActiveMQMessageProducer.getDisableMessageTimestamp()doubledoubleActiveMQMessage.getDoubleProperty(String name) ActiveMQQueueBrowser.getEnumeration()ActiveMQConnection.getExceptionListener()ActiveMQConnection.getFailoverListener()ReturnsFailoverEventListenerthe current failover event listener for this connection.floatfloatActiveMQMessage.getFloatProperty(String name) intintActiveMQMessage.getIntProperty(String name) ActiveMQMessage.getJMSCorrelationID()byte[]ActiveMQMessage.getJMSCorrelationIDAsBytes()intActiveMQMessage.getJMSDeliveryMode()longActiveMQMessage.getJMSDeliveryTime()ActiveMQMessage.getJMSDestination()longActiveMQMessage.getJMSExpiration()intActiveMQConnectionMetaData.getJMSMajorVersion()intActiveMQConnectionMetaData.getJMSMinorVersion()intActiveMQMessage.getJMSPriority()ActiveMQConnectionMetaData.getJMSProviderName()booleanActiveMQMessage.getJMSRedelivered()ActiveMQMessage.getJMSReplyTo()longActiveMQMessage.getJMSTimestamp()ActiveMQMessage.getJMSType()ActiveMQConnectionMetaData.getJMSVersion()ActiveMQConnectionMetaData.getJMSXPropertyNames()longlongActiveMQMessage.getLongProperty(String name) ActiveMQMapMessage.getMapNames()ActiveMQMessageConsumer.getMessageListener()ActiveMQSession.getMessageListener()Returns the session's distinguished message listener (optional).ActiveMQMessageConsumer.getMessageSelector()ActiveMQQueueBrowser.getMessageSelector()ActiveMQConnection.getMetaData()booleanActiveMQMessageConsumer.getNoLocal()ActiveMQObjectMessage.getObject()ActiveMQMessage.getObjectProperty(String name) intActiveMQMessageProducer.getPriority()ActiveMQMessage.getPropertyNames()intActiveMQConnectionMetaData.getProviderMajorVersion()intActiveMQConnectionMetaData.getProviderMinorVersion()ActiveMQConnectionMetaData.getProviderVersion()ActiveMQMessageConsumer.getQueue()ActiveMQMessageProducer.getQueue()ActiveMQQueueBrowser.getQueue()ActiveMQSession.getQueueSession()ActiveMQSession.getSession()shortshortActiveMQMessage.getShortProperty(String name) ActiveMQMessage.getStringProperty(String name) longActiveMQMessageProducer.getTimeToLive()ActiveMQMessageConsumer.getTopic()ActiveMQMessageProducer.getTopic()ActiveMQSession.getTopicSession()booleanActiveMQSession.getTransacted()Indicates whether the session is in transacted mode.protected QueueActiveMQSession.internalCreateQueue(String queueName) protected ActiveMQQueueActiveMQSession.internalCreateQueueCompatibility(String queueName) protected TopicActiveMQSession.internalCreateTopic(String topicName, boolean retry) booleanActiveMQMapMessage.itemExists(String name) booleanActiveMQMessage.propertyExists(String name) voidvoidvoidvoidActiveMQMessageProducer.publish(Topic topic, Message message, int deliveryMode, int priority, long timeToLive) booleanActiveMQBytesMessage.readBoolean()booleanActiveMQStreamMessage.readBoolean()byteActiveMQBytesMessage.readByte()byteActiveMQStreamMessage.readByte()intActiveMQBytesMessage.readBytes(byte[] value) intActiveMQBytesMessage.readBytes(byte[] value, int length) intActiveMQStreamMessage.readBytes(byte[] value) charActiveMQBytesMessage.readChar()charActiveMQStreamMessage.readChar()doubleActiveMQBytesMessage.readDouble()doubleActiveMQStreamMessage.readDouble()floatActiveMQBytesMessage.readFloat()floatActiveMQStreamMessage.readFloat()intActiveMQBytesMessage.readInt()intActiveMQStreamMessage.readInt()longActiveMQBytesMessage.readLong()longActiveMQStreamMessage.readLong()ActiveMQStreamMessage.readObject()shortActiveMQBytesMessage.readShort()shortActiveMQStreamMessage.readShort()ActiveMQStreamMessage.readString()intActiveMQBytesMessage.readUnsignedByte()intActiveMQBytesMessage.readUnsignedShort()ActiveMQBytesMessage.readUTF()ActiveMQMessageConsumer.receive()ActiveMQMessageConsumer.receive(long timeout) ActiveMQMessageConsumer.receiveNoWait()voidActiveMQSession.recover()Stops message delivery in this session, and restarts message delivery with the oldest unacknowledged message.voidActiveMQBytesMessage.reset()voidActiveMQStreamMessage.reset()voidActiveMQSession.rollback()Rolls back any messages done in this transaction and releases any locks currently held.voidActiveMQMessage.saveToOutputStream(OutputStream output) voidActiveMQMessageProducer.send(Destination destination, Message message) voidActiveMQMessageProducer.send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) voidActiveMQMessageProducer.send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener) voidActiveMQMessageProducer.send(Destination destination, Message message, CompletionListener completionListener) voidvoidvoidActiveMQMessageProducer.send(Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener) voidActiveMQMessageProducer.send(Message message, CompletionListener completionListener) voidvoidActiveMQMessageProducer.send(Queue queue, Message message, int deliveryMode, int priority, long timeToLive) voidActiveMQMapMessage.setBoolean(String name, boolean value) voidActiveMQMessage.setBooleanProperty(String name, boolean value) voidActiveMQConnectionFactory.setBrokerURL(String brokerURL) Warning: This method will not clear any previous properties.voidvoidActiveMQMessage.setByteProperty(String name, byte value) voidvoidvoidvoidActiveMQConnection.setClientID(String clientID) voidActiveMQMessageProducer.setDeliveryDelay(long deliveryDelay) voidActiveMQMessageProducer.setDeliveryMode(int deliveryMode) voidActiveMQMessageProducer.setDisableMessageID(boolean value) voidActiveMQMessageProducer.setDisableMessageTimestamp(boolean value) voidvoidActiveMQMessage.setDoubleProperty(String name, double value) voidActiveMQConnection.setExceptionListener(ExceptionListener listener) voidActiveMQConnection.setFailoverListener(FailoverEventListener listener) Sets a FailureListener for the session which is notified if a failure occurs on the session.voidvoidActiveMQMessage.setFloatProperty(String name, float value) voidActiveMQMessage.setInputStream(InputStream input) voidvoidActiveMQMessage.setIntProperty(String name, int value) voidActiveMQMessage.setJMSCorrelationID(String correlationID) voidActiveMQMessage.setJMSCorrelationIDAsBytes(byte[] correlationID) voidActiveMQMessage.setJMSDeliveryMode(int deliveryMode) voidActiveMQMessage.setJMSDeliveryTime(long deliveryTime) voidActiveMQMessage.setJMSDestination(Destination destination) voidActiveMQMessage.setJMSExpiration(long expiration) voidActiveMQMessage.setJMSMessageID(String jmsMessageID) voidActiveMQMessage.setJMSPriority(int priority) voidActiveMQMessage.setJMSRedelivered(boolean redelivered) voidActiveMQMessage.setJMSReplyTo(Destination dest) voidActiveMQMessage.setJMSTimestamp(long timestamp) voidActiveMQMessage.setJMSType(String type) voidvoidActiveMQMessage.setLongProperty(String name, long value) voidActiveMQMessageConsumer.setMessageListener(MessageListener listener) voidActiveMQSession.setMessageListener(MessageListener listener) Sets the session's distinguished message listener (optional).voidvoidActiveMQObjectMessage.setObject(Serializable object) voidActiveMQMessage.setObjectProperty(String name, Object value) voidActiveMQMessage.setOutputStream(OutputStream output) voidActiveMQMessageProducer.setPriority(int defaultPriority) voidvoidActiveMQMessage.setShortProperty(String name, short value) voidvoidActiveMQMessage.setStringProperty(String name, String value) voidvoidActiveMQMessageProducer.setTimeToLive(long timeToLive) voidActiveMQConnection.start()voidActiveMQSession.start()voidActiveMQConnection.stop()voidActiveMQSession.stop()voidActiveMQSession.unsubscribe(String name) Unsubscribes a durable subscription that has been created by a client.booleanActiveMQMessage.waitCompletionOnStream(long timeWait) voidActiveMQBytesMessage.writeBoolean(boolean value) voidActiveMQStreamMessage.writeBoolean(boolean value) voidActiveMQBytesMessage.writeByte(byte value) voidActiveMQStreamMessage.writeByte(byte value) voidActiveMQBytesMessage.writeBytes(byte[] value) voidActiveMQBytesMessage.writeBytes(byte[] value, int offset, int length) voidActiveMQStreamMessage.writeBytes(byte[] value) voidActiveMQStreamMessage.writeBytes(byte[] value, int offset, int length) voidActiveMQBytesMessage.writeChar(char value) voidActiveMQStreamMessage.writeChar(char value) voidActiveMQBytesMessage.writeDouble(double value) voidActiveMQStreamMessage.writeDouble(double value) voidActiveMQBytesMessage.writeFloat(float value) voidActiveMQStreamMessage.writeFloat(float value) voidActiveMQBytesMessage.writeInt(int value) voidActiveMQStreamMessage.writeInt(int value) voidActiveMQBytesMessage.writeLong(long value) voidActiveMQStreamMessage.writeLong(long value) voidActiveMQBytesMessage.writeObject(Object value) voidActiveMQStreamMessage.writeObject(Object value) voidActiveMQBytesMessage.writeShort(short value) voidActiveMQStreamMessage.writeShort(short value) voidActiveMQStreamMessage.writeString(String value) voidConstructors in org.apache.activemq.artemis.jms.client that throw JMSExceptionModifierConstructorDescriptionActiveMQBytesMessage(BytesMessage foreign, ClientSession session) Foreign message constructorActiveMQMapMessage(MapMessage foreign, ClientSession session) Constructor for a foreign MapMessageprotectedActiveMQMessage(Message foreign, byte type, ClientSession session) ActiveMQMessage(Message foreign, ClientSession session) A constructor that takes a foreign messageprotectedActiveMQMessageConsumer(ConnectionFactoryOptions options, ActiveMQConnection connection, ActiveMQSession session, ClientConsumer consumer, boolean noLocal, ActiveMQDestination destination, String selector, SimpleString autoDeleteQueueName) protectedActiveMQMessageProducer(ActiveMQConnection connection, ClientProducer producer, ActiveMQDestination defaultDestination, ActiveMQSession session, ConnectionFactoryOptions options) ActiveMQObjectMessage(ObjectMessage foreign, ClientSession session, ConnectionFactoryOptions options) A copy constructor for foreign JMS ObjectMessages.protectedActiveMQQueueBrowser(ConnectionFactoryOptions options, ActiveMQQueue queue, String messageSelector, ClientSession session, boolean enable1xPrefixes) ActiveMQStreamMessage(StreamMessage foreign, ClientSession session) ActiveMQTextMessage(TextMessage foreign, ClientSession session) A copy constructor for non-ActiveMQ Artemis JMS TextMessages. -
Uses of JMSException in org.apache.activemq.artemis.jms.client.compatible1X
Methods in org.apache.activemq.artemis.jms.client.compatible1X that throw JMSExceptionModifier and TypeMethodDescriptionActiveMQBytesCompatibleMessage.getJMSReplyTo()ActiveMQCompatibleMessage.getJMSReplyTo()ActiveMQMapCompatibleMessage.getJMSReplyTo()ActiveMQObjectCompatibleMessage.getJMSReplyTo()ActiveMQStreamCompatibleMessage.getJMSReplyTo()ActiveMQTextCompatibleMessage.getJMSReplyTo()voidActiveMQBytesCompatibleMessage.setJMSReplyTo(Destination dest) voidActiveMQCompatibleMessage.setJMSReplyTo(Destination dest) voidActiveMQMapCompatibleMessage.setJMSReplyTo(Destination dest) voidActiveMQObjectCompatibleMessage.setJMSReplyTo(Destination dest) voidActiveMQStreamCompatibleMessage.setJMSReplyTo(Destination dest) voidActiveMQTextCompatibleMessage.setJMSReplyTo(Destination dest) Constructors in org.apache.activemq.artemis.jms.client.compatible1X that throw JMSExceptionModifierConstructorDescriptionActiveMQBytesCompatibleMessage(BytesMessage foreign, ClientSession session) ActiveMQCompatibleMessage(Message foreign, byte type, ClientSession session) ActiveMQCompatibleMessage(Message foreign, ClientSession session) ActiveMQMapCompatibleMessage(MapMessage foreign, ClientSession session) ActiveMQObjectCompatibleMessage(ObjectMessage foreign, ClientSession session, ConnectionFactoryOptions options) ActiveMQStreamCompatibleMessage(StreamMessage foreign, ClientSession session) ActiveMQTextCompatibleMessage(TextMessage foreign, ClientSession session) -
Uses of JMSException in org.apache.activemq.artemis.ra
Methods in org.apache.activemq.artemis.ra that return JMSExceptionModifier and TypeMethodDescriptionActiveMQRABundle_impl.invalidSessionTransactedModeRuntimeAllowLocal()ActiveMQRABundle.invalidSessionTransactedModeRuntimeAllowLocal()Methods in org.apache.activemq.artemis.ra with parameters of type JMSExceptionModifier and TypeMethodDescriptionvoidActiveMQRAManagedConnection.onException(JMSException exception) Notifies user of a Jakarta Messaging exception.Methods in org.apache.activemq.artemis.ra that throw JMSExceptionModifier and TypeMethodDescriptionvoidActiveMQRAMessage.acknowledge()Acknowledges all consumed messages of the session of this consumed message.protected ActiveMQRASessionActiveMQRASessionFactoryImpl.allocateConnection(boolean transacted, int acknowledgeMode, int sessionType) protected ActiveMQRASessionActiveMQRASessionFactoryImpl.allocateConnection(int sessionType) voidActiveMQRASession.checkState()voidActiveMQRAManagedConnection.checkTransactionActive()voidActiveMQRAMessage.clearBody()Clears out the message body.voidActiveMQRAMessage.clearProperties()Clears a message's properties.voidActiveMQRAMessageConsumer.close()Closes the message consumer.voidActiveMQRAMessageProducer.close()Closes the message producer.voidActiveMQRASession.close()Closes the session.voidActiveMQRASessionFactoryImpl.close()Closes the connection.voidActiveMQRASessionFactory.closeSession(ActiveMQRASession session) voidActiveMQRASessionFactoryImpl.closeSession(ActiveMQRASession session) voidActiveMQRASession.commit()Commits all messages done in this transaction and releases any locks currently held.ActiveMQRASession.createBrowser(Queue queue) Creates aQueueBrowserobject to peek at the messages on the specified queue.ActiveMQRASession.createBrowser(Queue queue, String messageSelector) Creates aQueueBrowserobject to peek at the messages on the specified queue using a message selector.ActiveMQRASession.createBytesMessage()Creates aBytesMessageobject.ActiveMQRAConnectionFactoryImpl.createConnection()Creates a connection with the default user identity.ActiveMQRAConnectionFactoryImpl.createConnection(String userName, String password) Creates a connection with the specified user identity.ActiveMQRASessionFactoryImpl.createConnectionConsumer(Destination destination, ServerSessionPool pool, int maxMessages) ActiveMQRASessionFactoryImpl.createConnectionConsumer(Destination destination, String name, ServerSessionPool pool, int maxMessages) Creates a connection consumer for this connection (optional operation) on the specific destination.ActiveMQRASessionFactoryImpl.createConnectionConsumer(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Creates a connection consumer for this connection (optional operation).ActiveMQRASessionFactoryImpl.createConnectionConsumer(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) Creates a connection consumer for this connection (optional operation).ActiveMQRASession.createConsumer(Destination destination) Creates aMessageConsumerfor the specified destination.ActiveMQRASession.createConsumer(Destination destination, String messageSelector) Creates aMessageConsumerfor the specified destination, using a message selector.ActiveMQRASession.createConsumer(Destination destination, String messageSelector, boolean noLocal) Creates aMessageConsumerfor the specified destination, specifying a message selector and thenoLocalparameter.ActiveMQRASessionFactoryImpl.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.ActiveMQRASession.createDurableConsumer(Topic topic, String name) ActiveMQRASession.createDurableConsumer(Topic topic, String name, String messageSelector, boolean noLocal) ActiveMQRASession.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.ActiveMQRASession.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.ActiveMQRASession.createMapMessage()Creates aMapMessageobject.ActiveMQRASession.createMessage()Creates aMessageobject.ActiveMQRASession.createObjectMessage()Creates anObjectMessageobject.ActiveMQRASession.createObjectMessage(Serializable object) Creates an initializedObjectMessageobject.ActiveMQRASession.createProducer(Destination destination) Creates aMessageProducerto send messages to the specified destination.ActiveMQRASession.createPublisher(Topic topic) Creates a publisher for the specified topic.ActiveMQRASession.createQueue(String queueName) Creates a queue identity given aQueuename.ActiveMQRAConnectionFactoryImpl.createQueueConnection()Creates a queue connection with the default user identity.ActiveMQRAConnectionFactoryImpl.createQueueConnection(String userName, String password) Creates a queue connection with the specified user identity.ActiveMQRASessionFactoryImpl.createQueueSession(boolean transacted, int acknowledgeMode) Creates aQueueSessionobject.ActiveMQRASession.createReceiver(Queue queue) Creates aQueueReceiverobject to receive messages from the specified queue.ActiveMQRASession.createReceiver(Queue queue, String messageSelector) Creates aQueueReceiverobject to receive messages from the specified queue using a message selector.ActiveMQRASession.createSender(Queue queue) Creates aQueueSenderobject to send messages to the specified queue.ActiveMQRASessionFactoryImpl.createSession()ActiveMQRASessionFactoryImpl.createSession(boolean transacted, int acknowledgeMode) Creates anSessionobject.ActiveMQRASessionFactoryImpl.createSession(int sessionMode) ActiveMQRASessionFactoryImpl.createSharedConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) ActiveMQRASession.createSharedConsumer(Topic topic, String sharedSubscriptionName) ActiveMQRASession.createSharedConsumer(Topic topic, String sharedSubscriptionName, String messageSelector) ActiveMQRASessionFactoryImpl.createSharedDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) ActiveMQRASession.createSharedDurableConsumer(Topic topic, String name) ActiveMQRASession.createSharedDurableConsumer(Topic topic, String name, String messageSelector) ActiveMQRASession.createStreamMessage()Creates aStreamMessageobject.ActiveMQRASession.createSubscriber(Topic topic) Creates a nondurable subscriber to the specified topic.ActiveMQRASession.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.ActiveMQRASession.createTemporaryQueue()Creates aTemporaryQueueobject.ActiveMQRASession.createTemporaryTopic()Creates aTemporaryTopicobject.ActiveMQRASession.createTextMessage()Creates aTextMessageobject.ActiveMQRASession.createTextMessage(String string) Creates an initializedTextMessageobject.ActiveMQRASession.createTopic(String topicName) Creates aTopicobject which encapsulates a specified provider-specific topic name.ActiveMQRAConnectionFactoryImpl.createTopicConnection()Creates a topic connection with the default user identity.ActiveMQRAConnectionFactoryImpl.createTopicConnection(String userName, String password) Creates a topic connection with the specified user identity.ActiveMQRASessionFactoryImpl.createTopicSession(boolean transacted, int acknowledgeMode) Creates aTopicSessionobject.ActiveMQRAConnectionFactoryImpl.createXAConnection()Creates anXAConnectionwith the default user identity.ActiveMQRAConnectionFactoryImpl.createXAConnection(String userName, String password) Creates anXAConnectionwith the specified user identity.ActiveMQRAConnectionFactoryImpl.createXAQueueConnection()Creates an XA queue connection with the default user identity.ActiveMQRAConnectionFactoryImpl.createXAQueueConnection(String userName, String password) Creates an XA queue connection with the specified user identity.ActiveMQRASessionFactoryImpl.createXAQueueSession()Creates anXAQueueSessionobject.ActiveMQRASessionFactoryImpl.createXASession()Creates anXASessionobject.ActiveMQRAConnectionFactoryImpl.createXATopicConnection()Creates an XA topic connection with the default user identity.ActiveMQRAConnectionFactoryImpl.createXATopicConnection(String userName, String password) Creates an XA topic connection with the specified user identity.ActiveMQRASessionFactoryImpl.createXATopicSession()Creates anXATopicSessionobject.intActiveMQRASession.getAcknowledgeMode()Returns the acknowledgement mode of the session.<T> TReturns the message body as an object of the specified type.longActiveMQRABytesMessage.getBodyLength()Gets the number of bytes of the message body when the message is in read-only mode.booleanActiveMQRAMapMessage.getBoolean(String name) Returns thebooleanvalue with the specified name.booleanActiveMQRAMessage.getBooleanProperty(String name) Returns the value of thebooleanproperty with the specified name.byteReturns thebytevalue with the specified name.byteActiveMQRAMessage.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.ActiveMQRASessionFactoryImpl.getClientID()Gets the client identifier for this connection.longActiveMQRAMessageProducer.getDeliveryDelay()intActiveMQRAMessageProducer.getDeliveryMode()Gets the producer's default delivery mode.ActiveMQRAMessageProducer.getDestination()Gets the destination associated with thisMessageProducer.booleanActiveMQRAMessageProducer.getDisableMessageID()Gets an indication of whether message IDs are disabled.booleanActiveMQRAMessageProducer.getDisableMessageTimestamp()Gets an indication of whether message timestamps are disabled.doubleReturns thedoublevalue with the specified name.doubleActiveMQRAMessage.getDoubleProperty(String name) Returns the value of thedoubleproperty with the specified name.ActiveMQRASessionFactoryImpl.getExceptionListener()Gets theExceptionListenerobject for this connection.floatReturns thefloatvalue with the specified name.floatActiveMQRAMessage.getFloatProperty(String name) Returns the value of thefloatproperty with the specified name.intReturns theintvalue with the specified name.intActiveMQRAMessage.getIntProperty(String name) Returns the value of theintproperty with the specified name.ActiveMQRAMessage.getJMSCorrelationID()Gets the correlation ID for the message.byte[]ActiveMQRAMessage.getJMSCorrelationIDAsBytes()Gets the correlation ID as an array of bytes for the message.intActiveMQRAMessage.getJMSDeliveryMode()Gets theDeliveryModevalue specified for this message.longActiveMQRAMessage.getJMSDeliveryTime()Gets the message's delivery time value.ActiveMQRAMessage.getJMSDestination()Gets theDestinationobject for this message.longActiveMQRAMessage.getJMSExpiration()Gets the message's expiration time.ActiveMQRAMessage.getJMSMessageID()Gets the message ID.intActiveMQRAMessage.getJMSPriority()Gets the message priority level.booleanActiveMQRAMessage.getJMSRedelivered()Gets an indication of whether this message is being redelivered.ActiveMQRAMessage.getJMSReplyTo()Gets theDestinationobject to which a reply to this message should be sent.longActiveMQRAMessage.getJMSTimestamp()Gets the message timestamp.ActiveMQRAMessage.getJMSType()Gets the message type identifier supplied by the client when the message was sent.longReturns thelongvalue with the specified name.longActiveMQRAMessage.getLongProperty(String name) Returns the value of thelongproperty with the specified name.ActiveMQRAMapMessage.getMapNames()Returns anEnumerationof all the names in theMapMessageobject.ActiveMQRAMessageConsumer.getMessageListener()Gets theMessageConsumer'sMessageListener.ActiveMQRASession.getMessageListener()Returns the session's distinguished message listener (optional).ActiveMQRAMessageConsumer.getMessageSelector()Gets this message consumer's message selector expression.ActiveMQRASessionFactoryImpl.getMetaData()Gets the metadata for this connection.ActiveMQRASession.getNodeId()Returns the ID of the Node that this session is associated with..booleanActiveMQRATopicSubscriber.getNoLocal()Gets theNoLocalattribute for this subscriber.Returns the value of the object with the specified name.ActiveMQRAObjectMessage.getObject()Gets the serializable object containing this message's data.ActiveMQRAMessage.getObjectProperty(String name) Returns the value of the Java object property with the specified name.intActiveMQRAMessageProducer.getPriority()Gets the producer's default priority.ActiveMQRAMessage.getPropertyNames()Returns anEnumerationof all the property names.ActiveMQRAQueueReceiver.getQueue()Gets theQueueassociated with this queue receiver.ActiveMQRAQueueSender.getQueue()Gets the queue associated with thisQueueSender.ActiveMQRASession.getQueueSession()Gets the queue session associated with thisXAQueueSession.protected SessionActiveMQRAManagedConnection.getSession()ActiveMQRASession.getSession()Gets the session associated with thisXASession.shortReturns theshortvalue with the specified name.shortActiveMQRAMessage.getShortProperty(String name) Returns the value of theshortproperty with the specified name.Returns theStringvalue with the specified name.ActiveMQRAMessage.getStringProperty(String name) Returns the value of theStringproperty with the specified name.ActiveMQRATextMessage.getText()Gets the string containing this message's data.longActiveMQRAMessageProducer.getTimeToLive()Gets the default length of time in milliseconds from its dispatch time that a produced message should be retained by the message system.ActiveMQRATopicPublisher.getTopic()Gets the topic associated with thisTopicPublisher.ActiveMQRATopicSubscriber.getTopic()Gets theTopicassociated with this subscriber.ActiveMQRASession.getTopicSession()Gets the topic session associated with thisXATopicSession.booleanActiveMQRASession.getTransacted()Indicates whether the session is in transacted mode.booleanActiveMQRAMessage.isBodyAssignableTo(Class c) Returns whether the message body is capable of being assigned to the specified type.booleanActiveMQRAMapMessage.itemExists(String name) Indicates whether an item exists in thisMapMessageobject.protected voidActiveMQRASession.lock()LockbooleanActiveMQRAMessage.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.voidActiveMQRATopicPublisher.publish(Topic destination, 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.booleanActiveMQRABytesMessage.readBoolean()Reads abooleanfrom the bytes message stream.booleanActiveMQRAStreamMessage.readBoolean()Reads abooleanfrom the stream message.byteActiveMQRABytesMessage.readByte()Reads a signed 8-bit value from the bytes message stream.byteActiveMQRAStreamMessage.readByte()Reads abytevalue from the stream message.intActiveMQRABytesMessage.readBytes(byte[] value) Reads a byte array from the bytes message stream.intActiveMQRABytesMessage.readBytes(byte[] value, int length) Reads a portion of the bytes message stream.intActiveMQRAStreamMessage.readBytes(byte[] value) Reads a byte array field from the stream message into the specifiedbyte[]object (the read buffer).charActiveMQRABytesMessage.readChar()Reads a Unicode character value from the bytes message stream.charActiveMQRAStreamMessage.readChar()Reads a Unicode character value from the stream message.doubleActiveMQRABytesMessage.readDouble()Reads adoublefrom the bytes message stream.doubleActiveMQRAStreamMessage.readDouble()Reads adoublefrom the stream message.floatActiveMQRABytesMessage.readFloat()Reads afloatfrom the bytes message stream.floatActiveMQRAStreamMessage.readFloat()Reads afloatfrom the stream message.intActiveMQRABytesMessage.readInt()Reads a signed 32-bit integer from the bytes message stream.intActiveMQRAStreamMessage.readInt()Reads a 32-bit integer from the stream message.longActiveMQRABytesMessage.readLong()Reads a signed 64-bit integer from the bytes message stream.longActiveMQRAStreamMessage.readLong()Reads a 64-bit integer from the stream message.ActiveMQRAStreamMessage.readObject()Reads an object from the stream message.shortActiveMQRABytesMessage.readShort()Reads a signed 16-bit number from the bytes message stream.shortActiveMQRAStreamMessage.readShort()Reads a 16-bit integer from the stream message.ActiveMQRAStreamMessage.readString()Reads aStringfrom the stream message.intActiveMQRABytesMessage.readUnsignedByte()Reads an unsigned 8-bit number from the bytes message stream.intActiveMQRABytesMessage.readUnsignedShort()Reads an unsigned 16-bit number from the bytes message stream.ActiveMQRABytesMessage.readUTF()Reads a string that has been encoded using a modified UTF-8 format from the bytes message stream.ActiveMQRAMessageConsumer.receive()Receives the next message produced for this message consumer.ActiveMQRAMessageConsumer.receive(long timeout) Receives the next message that arrives within the specified timeout interval.ActiveMQRAMessageConsumer.receiveNoWait()Receives the next message if one is immediately available.voidActiveMQRASession.recover()Stops message delivery in this session, and restarts message delivery with the oldest unacknowledged message.voidActiveMQRABytesMessage.reset()Puts the message body in read-only mode and repositions the stream of bytes to the beginning.voidActiveMQRAStreamMessage.reset()Puts the message body in read-only mode and repositions the stream to the beginning.voidActiveMQRASession.rollback()Rolls back any messages done in this transaction and releases any locks currently held.voidActiveMQRAMessageProducer.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.voidActiveMQRAMessageProducer.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.voidActiveMQRAMessageProducer.send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener) voidActiveMQRAMessageProducer.send(Destination destination, Message message, CompletionListener completionListener) 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.voidActiveMQRAMessageProducer.send(Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener) voidActiveMQRAMessageProducer.send(Message message, CompletionListener completionListener) voidSends a message to a queue for an unidentified message producer.voidActiveMQRAQueueSender.send(Queue destination, 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.voidActiveMQRAMapMessage.setBoolean(String name, boolean value) Sets abooleanvalue with the specified name into the Map.voidActiveMQRAMessage.setBooleanProperty(String name, boolean value) Sets abooleanproperty value with the specified name into the message.voidSets abytevalue with the specified name into the Map.voidActiveMQRAMessage.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.voidActiveMQRASessionFactoryImpl.setClientID(String cID) Sets the client identifier for this connection.voidActiveMQRAMessageProducer.setDeliveryDelay(long deliveryDelay) voidActiveMQRAMessageProducer.setDeliveryMode(int deliveryMode) Sets the producer's default delivery mode.voidActiveMQRAMessageProducer.setDisableMessageID(boolean value) Specify whether message IDs may be disabled.voidActiveMQRAMessageProducer.setDisableMessageTimestamp(boolean value) Specify whether message timestamps may be disabled.voidSets adoublevalue with the specified name into the Map.voidActiveMQRAMessage.setDoubleProperty(String name, double value) Sets adoubleproperty value with the specified name into the message.voidActiveMQRASessionFactoryImpl.setExceptionListener(ExceptionListener listener) Sets an exception listener for this connection.voidSets afloatvalue with the specified name into the Map.voidActiveMQRAMessage.setFloatProperty(String name, float value) Sets afloatproperty value with the specified name into the message.voidSets anintvalue with the specified name into the Map.voidActiveMQRAMessage.setIntProperty(String name, int value) Sets anintproperty value with the specified name into the message.voidActiveMQRAMessage.setJMSCorrelationID(String correlationID) Sets the correlation ID for the message.voidActiveMQRAMessage.setJMSCorrelationIDAsBytes(byte[] correlationID) Sets the correlation ID as an array of bytes for the message.voidActiveMQRAMessage.setJMSDeliveryMode(int deliveryMode) Sets theDeliveryModevalue for this message.voidActiveMQRAMessage.setJMSDeliveryTime(long deliveryTime) Sets the message's delivery time value.voidActiveMQRAMessage.setJMSDestination(Destination destination) Sets theDestinationobject for this message.voidActiveMQRAMessage.setJMSExpiration(long expiration) Sets the message's expiration value.voidActiveMQRAMessage.setJMSMessageID(String id) Sets the message ID.voidActiveMQRAMessage.setJMSPriority(int priority) Sets the priority level for this message.voidActiveMQRAMessage.setJMSRedelivered(boolean redelivered) Specifies whether this message is being redelivered.voidActiveMQRAMessage.setJMSReplyTo(Destination replyTo) Sets theDestinationobject to which a reply to this message should be sent.voidActiveMQRAMessage.setJMSTimestamp(long timestamp) Sets the message timestamp.voidActiveMQRAMessage.setJMSType(String type) Sets the message type.voidSets alongvalue with the specified name into the Map.voidActiveMQRAMessage.setLongProperty(String name, long value) Sets alongproperty value with the specified name into the message.voidActiveMQRAMessageConsumer.setMessageListener(MessageListener listener) Sets theMessageConsumer'sMessageListener.voidActiveMQRASession.setMessageListener(MessageListener listener) Sets the session's distinguished message listener (optional).voidSets an object value with the specified name into the Map.voidActiveMQRAObjectMessage.setObject(Serializable object) Sets the serializable object containing this message's data.voidActiveMQRAMessage.setObjectProperty(String name, Object value) Sets a Java object property value with the specified name into the message.voidActiveMQRAMessageProducer.setPriority(int defaultPriority) Sets the producer's default priority.voidSets ashortvalue with the specified name into the Map.voidActiveMQRAMessage.setShortProperty(String name, short value) Sets ashortproperty value with the specified name into the message.voidSets aStringvalue with the specified name into the Map.voidActiveMQRAMessage.setStringProperty(String name, String value) Sets aStringproperty value with the specified name into the message.voidSets the string containing this message's data.voidActiveMQRAMessageProducer.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.voidActiveMQRASessionFactoryImpl.start()Starts (or restarts) a connection's delivery of incoming messages.voidActiveMQRASessionFactoryImpl.stop()Temporarily stops a connection's delivery of incoming messages.protected voidActiveMQRAManagedConnection.tryLock()Aqquire a lock on the managed connection within the specified periodvoidActiveMQRASession.unsubscribe(String name) Unsubscribes a durable subscription that has been created by a client.voidActiveMQRABytesMessage.writeBoolean(boolean value) Writes abooleanto the bytes message stream as a 1-byte value.voidActiveMQRAStreamMessage.writeBoolean(boolean value) Writes abooleanto the stream message.voidActiveMQRABytesMessage.writeByte(byte value) Writes abyteto the bytes message stream as a 1-byte value.voidActiveMQRAStreamMessage.writeByte(byte value) Writes abyteto the stream message.voidActiveMQRABytesMessage.writeBytes(byte[] value) Writes a byte array to the bytes message stream.voidActiveMQRABytesMessage.writeBytes(byte[] value, int offset, int length) Writes a portion of a byte array to the bytes message stream.voidActiveMQRAStreamMessage.writeBytes(byte[] value) Writes a byte array field to the stream message.voidActiveMQRAStreamMessage.writeBytes(byte[] value, int offset, int length) Writes a portion of a byte array as a byte array field to the stream message.voidActiveMQRABytesMessage.writeChar(char value) Writes acharto the bytes message stream as a 2-byte value, high byte first.voidActiveMQRAStreamMessage.writeChar(char value) Writes acharto the stream message.voidActiveMQRABytesMessage.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.voidActiveMQRAStreamMessage.writeDouble(double value) Writes adoubleto the stream message.voidActiveMQRABytesMessage.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.voidActiveMQRAStreamMessage.writeFloat(float value) Writes afloatto the stream message.voidActiveMQRABytesMessage.writeInt(int value) Writes anintto the bytes message stream as four bytes, high byte first.voidActiveMQRAStreamMessage.writeInt(int value) Writes anintto the stream message.voidActiveMQRABytesMessage.writeLong(long value) Writes alongto the bytes message stream as eight bytes, high byte first.voidActiveMQRAStreamMessage.writeLong(long value) Writes alongto the stream message.voidActiveMQRABytesMessage.writeObject(Object value) Writes an object to the bytes message stream.voidActiveMQRAStreamMessage.writeObject(Object value) Writes an object to the stream message.voidActiveMQRABytesMessage.writeShort(short value) Writes ashortto the bytes message stream as two bytes, high byte first.voidActiveMQRAStreamMessage.writeShort(short value) Writes ashortto the stream message.voidActiveMQRAStreamMessage.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. -
Uses of JMSException in org.wildfly.extension.messaging.activemq.jms
Methods in org.wildfly.extension.messaging.activemq.jms that throw JMSExceptionModifier and TypeMethodDescriptionvoidDestinationConfiguration.createQueue(ConnectionFactory cf, Queue managementQueue, String queueName) voidDestinationConfiguration.createTopic(ConnectionFactory cf, Queue managementQueue, String topicName) voidDestinationConfiguration.destroyQueue(ConnectionFactory cf, Queue managementQueue, String queueName) voidDestinationConfiguration.destroyTopic(ConnectionFactory cf, Queue managementQueue, String topicName)