| ID | Return | Method/Field | Description | Required | Deprecated | Testable |
| JMS:JAVADOC:1 | TransactionRolledBackException | javax.jms.TransactionRolledBackException.TransactionRolledBackException
(
String
, String
)
| Constructs a TransactionRolledBackException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:2 | TransactionRolledBackException | javax.jms.TransactionRolledBackException.TransactionRolledBackException
(
String
)
| Constructs a TransactionRolledBackException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:3 | TransactionInProgressException | javax.jms.TransactionInProgressException.TransactionInProgressException
(
String
, String
)
| Constructs a TransactionInProgressException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:4 | TransactionInProgressException | javax.jms.TransactionInProgressException.TransactionInProgressException
(
String
)
| Constructs a TransactionInProgressException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:5 | TopicRequestor | javax.jms.TopicRequestor.TopicRequestor
(
TopicSession
, Topic
)
| Constructor for the TopicRequestor class. This implementation assumes the session parameter to be non-transacted, with a delivery mode of either AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE. | true |
| true |
| JMS:JAVADOC:6 | Message | javax.jms.TopicRequestor.request
(
Message
)
| Sends a request and waits for a reply. The temporary topic is used for the JMSReplyTo destination; the first reply is returned, and any following replies are discarded. | true |
| true |
| JMS:JAVADOC:7 | Message | javax.jms.TopicRequestor.request
(
Message
)
throws
JMSException
| if the JMS provider fails to complete the request due to some internal error. | true |
| false |
| JMS:JAVADOC:8 | void | javax.jms.TopicRequestor.close
| Closes the TopicRequestor and its session. Since a provider may allocate some resources on behalf of a TopicRequestor outside the Java virtual machine, clients should close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. Note that this method closes the TopicSession object passed to the TopicRequestor constructor. | true |
| true |
| JMS:JAVADOC:9 | void | javax.jms.TopicRequestor.close
throws
JMSException
| if the JMS provider fails to close the TopicRequestor due to some internal error. | true |
| false |
| JMS:JAVADOC:10 | ResourceAllocationException | javax.jms.ResourceAllocationException.ResourceAllocationException
(
String
, String
)
| Constructs a ResourceAllocationException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:11 | ResourceAllocationException | javax.jms.ResourceAllocationException.ResourceAllocationException
(
String
)
| Constructs a ResourceAllocationException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:12 | QueueRequestor | javax.jms.QueueRequestor.QueueRequestor
(
QueueSession
, Queue
)
| Constructor for the QueueRequestor class. This implementation assumes the session parameter to be non-transacted, with a delivery mode of either AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE. | true |
| true |
| JMS:JAVADOC:13 | Message | javax.jms.QueueRequestor.request
(
Message
)
| Sends a request and waits for a reply. The temporary queue is used for the JMSReplyTo destination, and only one reply per request is expected. | true |
| true |
| JMS:JAVADOC:14 | Message | javax.jms.QueueRequestor.request
(
Message
)
throws
JMSException
| if the JMS provider fails to complete the request due to some internal error. | true |
| false |
| JMS:JAVADOC:15 | void | javax.jms.QueueRequestor.close
| Closes the QueueRequestor and its session. Since a provider may allocate some resources on behalf of a QueueRequestor outside the Java virtual machine, clients should close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. Note that this method closes the QueueSession object passed to the QueueRequestor constructor. | true |
| true |
| JMS:JAVADOC:16 | void | javax.jms.QueueRequestor.close
throws
JMSException
| if the JMS provider fails to close the QueueRequestor due to some internal error. | true |
| false |
| JMS:JAVADOC:17 | MessageNotWriteableException | javax.jms.MessageNotWriteableException.MessageNotWriteableException
(
String
, String
)
| Constructs a MessageNotWriteableException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:18 | MessageNotWriteableException | javax.jms.MessageNotWriteableException.MessageNotWriteableException
(
String
)
| Constructs a MessageNotWriteableException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:19 | MessageNotReadableException | javax.jms.MessageNotReadableException.MessageNotReadableException
(
String
, String
)
| Constructs a MessageNotReadableException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:20 | MessageNotReadableException | javax.jms.MessageNotReadableException.MessageNotReadableException
(
String
)
| Constructs a MessageNotReadableException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:21 | MessageFormatException | javax.jms.MessageFormatException.MessageFormatException
(
String
, String
)
| Constructs a MessageFormatException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:22 | MessageFormatException | javax.jms.MessageFormatException.MessageFormatException
(
String
)
| Constructs a MessageFormatException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:23 | MessageEOFException | javax.jms.MessageEOFException.MessageEOFException
(
String
, String
)
| Constructs a MessageEOFException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:24 | MessageEOFException | javax.jms.MessageEOFException.MessageEOFException
(
String
)
| Constructs a MessageEOFException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:25 | JMSSecurityException | javax.jms.JMSSecurityException.JMSSecurityException
(
String
, String
)
| Constructs a JMSSecurityException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:26 | JMSSecurityException | javax.jms.JMSSecurityException.JMSSecurityException
(
String
)
| Constructs a JMSSecurityException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:27 | JMSException | javax.jms.JMSException.JMSException
(
String
, String
)
| Constructs a JMSException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:28 | JMSException | javax.jms.JMSException.JMSException
(
String
)
| Constructs a JMSException with the specified reason and with the error code defaulting to null. | true |
| true |
| JMS:JAVADOC:29 | String | javax.jms.JMSException.getErrorCode
| Gets the vendor-specific error code. | true |
| true |
| JMS:JAVADOC:30 | Exception | javax.jms.JMSException.getLinkedException
| Gets the exception linked to this one. | true |
| true |
| JMS:JAVADOC:31 | void | javax.jms.JMSException.setLinkedException
(
Exception
)
| Adds a linked Exception. | true |
| true |
| JMS:JAVADOC:32 | InvalidSelectorException | javax.jms.InvalidSelectorException.InvalidSelectorException
(
String
, String
)
| Constructs an InvalidSelectorException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:33 | InvalidSelectorException | javax.jms.InvalidSelectorException.InvalidSelectorException
(
String
)
| Constructs an InvalidSelectorException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:34 | InvalidDestinationException | javax.jms.InvalidDestinationException.InvalidDestinationException
(
String
, String
)
| Constructs an InvalidDestinationException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:35 | InvalidDestinationException | javax.jms.InvalidDestinationException.InvalidDestinationException
(
String
)
| Constructs an InvalidDestinationException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:36 | InvalidClientIDException | javax.jms.InvalidClientIDException.InvalidClientIDException
(
String
, String
)
| Constructs an InvalidClientIDException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:37 | InvalidClientIDException | javax.jms.InvalidClientIDException.InvalidClientIDException
(
String
)
| Constructs an InvalidClientIDException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:38 | IllegalStateException | javax.jms.IllegalStateException.IllegalStateException
(
String
, String
)
| Constructs an IllegalStateException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:39 | IllegalStateException | javax.jms.IllegalStateException.IllegalStateException
(
String
)
| Constructs an IllegalStateException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:40 | TopicSession | javax.jms.XATopicSession.getTopicSession
| Gets the topic session associated with this XATopicSession. | false |
| true |
| JMS:JAVADOC:41 | TopicSession | javax.jms.XATopicSession.getTopicSession
throws
JMSException
| if an internal error occurs. | false |
| false |
| JMS:JAVADOC:42 | XATopicConnection | javax.jms.XATopicConnectionFactory.createXATopicConnection
| Creates an XA topic connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. | false |
| true |
| JMS:JAVADOC:43 | XATopicConnection | javax.jms.XATopicConnectionFactory.createXATopicConnection
throws
JMSException
| if the JMS provider fails to create an XA topic connection due to some internal error. | false |
| false |
| JMS:JAVADOC:44 | XATopicConnection | javax.jms.XATopicConnectionFactory.createXATopicConnection
(
String
, String
)
| Creates an XA topic connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. | false |
| true |
| JMS:JAVADOC:45 | XATopicConnection | javax.jms.XATopicConnectionFactory.createXATopicConnection
(
String
, String
)
throws
JMSException
| if the JMS provider fails to create an XA topic connection due to some internal error. | false |
| false |
| JMS:JAVADOC:46 | XATopicSession | javax.jms.XATopicConnection.createXATopicSession
| Creates an XATopicSession object. | false |
| true |
| JMS:JAVADOC:47 | XATopicSession | javax.jms.XATopicConnection.createXATopicSession
throws
JMSException
| if the XATopicConnection object fails to create an XATopicSession due to some internal error. | false |
| false |
| JMS:JAVADOC:48 | TopicSession | javax.jms.XATopicConnection.createTopicSession
(
boolean
, int
)
| Creates a TopicSession object. | false |
| true |
| JMS:JAVADOC:49 | TopicSession | javax.jms.XATopicConnection.createTopicSession
(
boolean
, int
)
throws
JMSException
| if the XATopicConnection object fails to create a TopicSession due to some internal error. | false |
| false |
| JMS:JAVADOC:50 | Session | javax.jms.XASession.getSession
| Gets the session associated with this XASession. | false |
| true |
| JMS:JAVADOC:51 | Session | javax.jms.XASession.getSession
throws
JMSException
| if an internal error occurs. | false |
| false |
| JMS:JAVADOC:52 | XAResource | javax.jms.XASession.getXAResource
| Returns an XA resource to the caller. | false |
| true |
| JMS:JAVADOC:53 | boolean | javax.jms.XASession.getTransacted
| Indicates whether the session is in transacted mode. | false |
| true |
| JMS:JAVADOC:54 | boolean | javax.jms.XASession.getTransacted
throws
JMSException
| if the JMS provider fails to return the transaction mode due to some internal error. | false |
| false |
| JMS:JAVADOC:55 | void | javax.jms.XASession.commit
| Throws a TransactionInProgressException, since it should not be called for an XASession object. | false |
| true |
| JMS:JAVADOC:57 | void | javax.jms.XASession.rollback
| Throws a TransactionInProgressException, since it should not be called for an XASession object. | false |
| true |
| JMS:JAVADOC:59 | QueueSession | javax.jms.XAQueueSession.getQueueSession
| Gets the queue session associated with this XAQueueSession. | false |
| true |
| JMS:JAVADOC:60 | QueueSession | javax.jms.XAQueueSession.getQueueSession
throws
JMSException
| if an internal error occurs. | false |
| false |
| JMS:JAVADOC:61 | XAQueueConnection | javax.jms.XAQueueConnectionFactory.createXAQueueConnection
| Creates an XA queue connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. | false |
| true |
| JMS:JAVADOC:62 | XAQueueConnection | javax.jms.XAQueueConnectionFactory.createXAQueueConnection
throws
JMSException
| if the JMS provider fails to create an XA queue connection due to some internal error. | false |
| false |
| JMS:JAVADOC:63 | XAQueueConnection | javax.jms.XAQueueConnectionFactory.createXAQueueConnection
(
String
, String
)
| Creates an XA queue connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. | false |
| true |
| JMS:JAVADOC:64 | XAQueueConnection | javax.jms.XAQueueConnectionFactory.createXAQueueConnection
(
String
, String
)
throws
JMSException
| if the JMS provider fails to create an XA queue connection due to some internal error. | false |
| false |
| JMS:JAVADOC:65 | XAQueueSession | javax.jms.XAQueueConnection.createXAQueueSession
| Creates an XAQueueSession object. | false |
| true |
| JMS:JAVADOC:66 | XAQueueSession | javax.jms.XAQueueConnection.createXAQueueSession
throws
JMSException
| if the XAQueueConnection object fails to create an XAQueueSession due to some internal error. | false |
| false |
| JMS:JAVADOC:67 | QueueSession | javax.jms.XAQueueConnection.createQueueSession
(
boolean
, int
)
| Creates a QueueSession object. | false |
| true |
| JMS:JAVADOC:68 | QueueSession | javax.jms.XAQueueConnection.createQueueSession
(
boolean
, int
)
throws
JMSException
| if the XAQueueConnection object fails to create a QueueSession due to some internal error. | false |
| false |
| JMS:JAVADOC:69 | XAConnection | javax.jms.XAConnectionFactory.createXAConnection
| Creates an XAConnection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. | false |
| true |
| JMS:JAVADOC:70 | XAConnection | javax.jms.XAConnectionFactory.createXAConnection
throws
JMSException
| if the JMS provider fails to create an XA connection due to some internal error. | false |
| false |
| JMS:JAVADOC:71 | XAConnection | javax.jms.XAConnectionFactory.createXAConnection
(
String
, String
)
| Creates an XAConnection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. | false |
| true |
| JMS:JAVADOC:72 | XAConnection | javax.jms.XAConnectionFactory.createXAConnection
(
String
, String
)
throws
JMSException
| if the JMS provider fails to create an XA connection due to some internal error. | false |
| false |
| JMS:JAVADOC:73 | XASession | javax.jms.XAConnection.createXASession
| Creates an XASession object. | false |
| true |
| JMS:JAVADOC:74 | XASession | javax.jms.XAConnection.createXASession
throws
JMSException
| if the XAConnection object fails to create an XASession due to some internal error. | false |
| false |
| JMS:JAVADOC:75 | Session | javax.jms.XAConnection.createSession
(
boolean
, int
)
| Creates an Session object. | false |
| true |
| JMS:JAVADOC:76 | Session | javax.jms.XAConnection.createSession
(
boolean
, int
)
throws
JMSException
| if the XAConnection object fails to create a Session due to some internal error. | false |
| false |
| JMS:JAVADOC:77 | Topic | javax.jms.TopicSubscriber.getTopic
| Gets the Topic associated with this subscriber. | true |
| true |
| JMS:JAVADOC:78 | Topic | javax.jms.TopicSubscriber.getTopic
throws
JMSException
| if the JMS provider fails to get the topic for this topic subscriber due to some internal error. | true |
| false |
| JMS:JAVADOC:79 | boolean | javax.jms.TopicSubscriber.getNoLocal
| Gets the NoLocal attribute for this subscriber. The default value for this attribute is false. | true |
| true |
| JMS:JAVADOC:80 | boolean | javax.jms.TopicSubscriber.getNoLocal
throws
JMSException
| if the JMS provider fails to get the NoLocal attribute for this topic subscriber due to some internal error. | true |
| false |
| JMS:JAVADOC:81 | Topic | javax.jms.TopicSession.createTopic
(
String
)
| Creates a topic identity given a Topic name. This facility is provided for the rare cases where clients need to dynamically manipulate topic identity. This allows the creation of a topic identity with a provider-specific name. Clients that depend on this ability are not portable. Note that this method is not for creating the physical topic. The physical creation of topics is an administrative task and is not to be initiated by the JMS API. The one exception is the creation of temporary topics, which is accomplished with the createTemporaryTopic method. | true |
| true |
| JMS:JAVADOC:82 | Topic | javax.jms.TopicSession.createTopic
(
String
)
throws
JMSException
| if the session fails to create a topic due to some internal error. | true |
| false |
| JMS:JAVADOC:83 | TopicSubscriber | javax.jms.TopicSession.createSubscriber
(
Topic
)
| Creates a nondurable subscriber to the specified topic. A client uses a TopicSubscriber object to receive messages that have been published to a topic. Regular TopicSubscriber objects are not durable. They receive only messages that are published while they are active. In some cases, a connection may both publish and subscribe to a topic. The subscriber NoLocal attribute allows a subscriber to inhibit the delivery of messages published by its own connection. The default value for this attribute is false. | true |
| true |
| JMS:JAVADOC:84 | TopicSubscriber | javax.jms.TopicSession.createSubscriber
(
Topic
)
throws
JMSException
| if the session fails to create a subscriber due to some internal error. | true |
| false |
| JMS:JAVADOC:85 | TopicSubscriber | javax.jms.TopicSession.createSubscriber
(
Topic
, String
, boolean
)
| 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. A client uses a TopicSubscriber object to receive messages that have been published to a topic. Regular TopicSubscriber objects are not durable. They receive only messages that are published while they are active. Messages filtered out by a subscriber's message selector will never be delivered to the subscriber. From the subscriber's perspective, they do not exist. In some cases, a connection may both publish and subscribe to a topic. The subscriber NoLocal attribute allows a subscriber to inhibit the delivery of messages published by its own connection. The default value for this attribute is false. | true |
| true |
| JMS:JAVADOC:86 | TopicSubscriber | javax.jms.TopicSession.createSubscriber
(
Topic
, String
, boolean
)
throws
JMSException
| if the session fails to create a subscriber due to some internal error. | true |
| false |
| JMS:JAVADOC:87 | TopicSubscriber | javax.jms.TopicSession.createDurableSubscriber
(
Topic
, String
)
| Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription. This method creates the durable subscription without a message selector and with a noLocal value of false. A durable subscription is used by an application which needs to receive all the messages published on a topic, including the ones published when there is no active consumer associated with it. The JMS provider retains a record of this durable subscription and ensures that all messages from the topic's publishers are retained until they are delivered to, and acknowledged by, a consumer on this durable subscription or until they have expired. A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method. This method may only be used with non-shared durable subscriptions. Any durable subscription created using this method will be non-shared. This means that only one active (i.e. not closed) consumer on the subscription may exist at a time. The term "consumer" here means a TopicSubscriber, MessageConsumer or JMSConsumer object in any client. An unshared durable subscription is identified by a name specified by the client and by the client identifier, which must be set. An application which subsequently wishes to create a consumer on that non-shared durable subscription must use the same client identifier. If an unshared durable subscription already exists with the same name and client identifier and the same topic and message selector, and there is no consumer already active (i.e. not closed) on the durable subscription, and no consumed messages from that subscription are still part of a pending transaction or are not yet acknowledged in the session, then this method creates a TopicSubscriber on the existing durable subscription. If an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active (i.e. not closed) on the durable subscription, or consumed messages from that subscription are still part of a pending transaction or are not yet acknowledged in the session, then a JMSException will be thrown. If an unshared durable subscription already exists with the same name and client identifier but a different topic, message selector or noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription, and no consumed messages from that subscription are still part of a pending transaction or are not yet acknowledged in the session, then the durable subscription will be deleted and a new one created. A shared durable subscription and an unshared durable subscription may not have the same name and client identifier. If a shared durable subscription already exists with the same name and client identifier then a JMSException is thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId. Such subscriptions would be completely separate. This method is identical to the corresponding createDurableConsumer method except that it returns a TopicSubscriber rather than a MessageConsumer to represent the consumer. | true |
| true |
| JMS:JAVADOC:88 | TopicSubscriber | javax.jms.TopicSession.createDurableSubscriber
(
Topic
, String
)
throws
JMSException
| if the session fails to create the non-shared durable subscription and TopicSubscriber due to some internal error if the client identifier is unset if an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active if a shared durable subscription already exists with the same name and client identifier | true |
| false |
| JMS:JAVADOC:89 | TopicSubscriber | javax.jms.TopicSession.createDurableSubscriber
(
Topic
, String
, String
, boolean
)
| Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and the noLocal parameter, and creates a consumer on that durable subscription. A durable subscription is used by an application which needs to receive all the messages published on a topic, including the ones published when there is no active consumer associated with it. The JMS provider retains a record of this durable subscription and ensures that all messages from the topic's publishers are retained until they are delivered to, and acknowledged by, a consumer on this durable subscription or until they have expired. A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method. This method may only be used with non-shared durable subscriptions. Any durable subscription created using this method will be non-shared. This means that only one active (i.e. not closed) consumer on the subscription may exist at a time. The term "consumer" here means a TopicSubscriber, MessageConsumer or JMSConsumer object in any client. An unshared durable subscription is identified by a name specified by the client and by the client identifier, which must be set. An application which subsequently wishes to create a consumer on that non-shared durable subscription must use the same client identifier. If an unshared durable subscription already exists with the same name and client identifier and the same topic and message selector, and there is no consumer already active (i.e. not closed) on the durable subscription, and no consumed messages from that subscription are still part of a pending transaction or are not yet acknowledged in the session, then this method creates a TopicSubscriber on the existing durable subscription. If an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active (i.e. not closed) on the durable subscription, or consumed messages from that subscription are still part of a pending transaction or are not yet acknowledged in the session, then a JMSException will be thrown. If an unshared durable subscription already exists with the same name and client identifier but a different topic, message selector or noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription, and no consumed messages from that subscription are still part of a pending transaction or are not yet acknowledged in the session, then the durable subscription will be deleted and a new one created. A shared durable subscription and an unshared durable subscription may not have the same name and client identifier. If a shared durable subscription already exists with the same name and client identifier then a JMSException is thrown. If noLocal is set to true then any messages published to the topic using this session's connection, or any other connection with the same client identifier, will not be added to the durable subscription. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId. Such subscriptions would be completely separate. This method is identical to the corresponding createDurableConsumer method except that it returns a TopicSubscriber rather than a MessageConsumer to represent the consumer. | true |
| true |
| JMS:JAVADOC:90 | TopicSubscriber | javax.jms.TopicSession.createDurableSubscriber
(
Topic
, String
, String
, boolean
)
throws
JMSException
| if the session fails to create the non-shared durable subscription and TopicSubscriber due to some internal error if the client identifier is unset if an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active if a shared durable subscription already exists with the same name and client identifier | true |
| false |
| JMS:JAVADOC:91 | TopicPublisher | javax.jms.TopicSession.createPublisher
(
Topic
)
| Creates a publisher for the specified topic. A client uses a TopicPublisher object to publish messages on a topic. Each time a client creates a TopicPublisher on a topic, it defines a new sequence of messages that have no ordering relationship with the messages it has previously sent. | true |
| true |
| JMS:JAVADOC:92 | TopicPublisher | javax.jms.TopicSession.createPublisher
(
Topic
)
throws
JMSException
| if the session fails to create a publisher due to some internal error. | true |
| false |
| JMS:JAVADOC:93 | TemporaryTopic | javax.jms.TopicSession.createTemporaryTopic
| Creates a TemporaryTopic object. Its lifetime will be that of the TopicConnection unless it is deleted earlier. | true |
| true |
| JMS:JAVADOC:94 | TemporaryTopic | javax.jms.TopicSession.createTemporaryTopic
throws
JMSException
| if the session fails to create a temporary topic due to some internal error. | true |
| false |
| JMS:JAVADOC:95 | void | javax.jms.TopicSession.unsubscribe
(
String
)
| Unsubscribes a durable subscription that has been created by a client. This method deletes the state being maintained on behalf of the subscriber by its provider. It is erroneous for a client to delete a durable subscription while there is an active TopicSubscriber for the subscription, or while a consumed message is part of a pending transaction or has not been acknowledged in the session. | true |
| true |
| JMS:JAVADOC:96 | void | javax.jms.TopicSession.unsubscribe
(
String
)
throws
JMSException
| if the session fails to unsubscribe to the durable subscription due to some internal error. | true |
| false |
| JMS:JAVADOC:97 | Topic | javax.jms.TopicPublisher.getTopic
| Gets the topic associated with this TopicPublisher. | true |
| true |
| JMS:JAVADOC:98 | Topic | javax.jms.TopicPublisher.getTopic
throws
JMSException
| if the JMS provider fails to get the topic for this TopicPublisher due to some internal error. | true |
| false |
| JMS:JAVADOC:99 | void | javax.jms.TopicPublisher.publish
(
Message
)
| Publishes a message to the topic. Uses the TopicPublisher's default delivery mode, priority, and time to live. | true |
| true |
| JMS:JAVADOC:100 | void | javax.jms.TopicPublisher.publish
(
Message
)
throws
JMSException
| if the JMS provider fails to publish the message due to some internal error. | true |
| false |
| JMS:JAVADOC:101 | void | javax.jms.TopicPublisher.publish
(
Message
, int
, int
, long
)
| Publishes a message to the topic, specifying delivery mode, priority, and time to live. | true |
| true |
| JMS:JAVADOC:102 | void | javax.jms.TopicPublisher.publish
(
Message
, int
, int
, long
)
throws
JMSException
| if the JMS provider fails to publish the message due to some internal error. | true |
| false |
| JMS:JAVADOC:103 | void | javax.jms.TopicPublisher.publish
(
Topic
, Message
)
| Publishes a message to a topic for an unidentified message producer. Uses the TopicPublisher's default delivery mode, priority, and time to live. Typically, a message producer is assigned a topic at creation time; however, the JMS API also supports unidentified message producers, which require that the topic be supplied every time a message is published. | true |
| true |
| JMS:JAVADOC:104 | void | javax.jms.TopicPublisher.publish
(
Topic
, Message
)
throws
JMSException
| if the JMS provider fails to publish the message due to some internal error. | true |
| false |
| JMS:JAVADOC:105 | void | javax.jms.TopicPublisher.publish
(
Topic
, Message
, int
, int
, long
)
| Publishes a message to a topic for an unidentified message producer, specifying delivery mode, priority and time to live. Typically, a message producer is assigned a topic at creation time; however, the JMS API also supports unidentified message producers, which require that the topic be supplied every time a message is published. | true |
| true |
| JMS:JAVADOC:106 | void | javax.jms.TopicPublisher.publish
(
Topic
, Message
, int
, int
, long
)
throws
JMSException
| if the JMS provider fails to publish the message due to some internal error. | true |
| false |
| JMS:JAVADOC:107 | TopicConnection | javax.jms.TopicConnectionFactory.createTopicConnection
| Creates a topic connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. | true |
| true |
| JMS:JAVADOC:108 | TopicConnection | javax.jms.TopicConnectionFactory.createTopicConnection
throws
JMSException
| if the JMS provider fails to create a topic connection due to some internal error. | true |
| false |
| JMS:JAVADOC:109 | TopicConnection | javax.jms.TopicConnectionFactory.createTopicConnection
(
String
, String
)
| Creates a topic connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. | true |
| true |
| JMS:JAVADOC:110 | TopicConnection | javax.jms.TopicConnectionFactory.createTopicConnection
(
String
, String
)
throws
JMSException
| if the JMS provider fails to create a topic connection due to some internal error. | true |
| false |
| JMS:JAVADOC:111 | TopicSession | javax.jms.TopicConnection.createTopicSession
(
boolean
, int
)
| Creates a TopicSession object. | true |
| true |
| JMS:JAVADOC:112 | TopicSession | javax.jms.TopicConnection.createTopicSession
(
boolean
, int
)
throws
JMSException
| if the TopicConnection object fails to create a session due to some internal error or lack of support for the specific transaction and acknowledgement mode. | true |
| false |
| JMS:JAVADOC:113 | ConnectionConsumer | javax.jms.TopicConnection.createConnectionConsumer
(
Topic
, String
, ServerSessionPool
, int
)
| Creates a connection consumer for this connection (optional operation). This is an expert facility not used by regular JMS clients. | false |
| true |
| JMS:JAVADOC:114 | ConnectionConsumer | javax.jms.TopicConnection.createConnectionConsumer
(
Topic
, String
, ServerSessionPool
, int
)
throws
JMSException
| if the TopicConnection object fails to create a connection consumer due to some internal error or invalid arguments for sessionPool and messageSelector. | false |
| false |
| JMS:JAVADOC:115 | ConnectionConsumer | javax.jms.TopicConnection.createDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
| Create a durable connection consumer for this connection (optional operation). This is an expert facility not used by regular JMS clients. | false |
| true |
| JMS:JAVADOC:116 | ConnectionConsumer | javax.jms.TopicConnection.createDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
JMSException
| if the TopicConnection object fails to create a connection consumer due to some internal error or invalid arguments for sessionPool and messageSelector. | false |
| false |
| JMS:JAVADOC:117 | String | javax.jms.Topic.getTopicName
| Gets the name of this topic. Clients that depend upon the name are not portable. | true |
| true |
| JMS:JAVADOC:118 | String | javax.jms.Topic.getTopicName
throws
JMSException
| if the JMS provider implementation of Topic fails to return the topic name due to some internal error. | true |
| false |
| JMS:JAVADOC:119 | String | javax.jms.Topic.toString
| Returns a string representation of this object. | true |
| true |
| JMS:JAVADOC:120 | void | javax.jms.TextMessage.setText
(
String
)
| Sets the string containing this message's data. | true |
| true |
| JMS:JAVADOC:121 | void | javax.jms.TextMessage.setText
(
String
)
throws
JMSException
| if the JMS provider fails to set the text due to some internal error. | true |
| false |
| JMS:JAVADOC:122 | String | javax.jms.TextMessage.getText
| Gets the string containing this message's data. The default value is null. | true |
| true |
| JMS:JAVADOC:123 | String | javax.jms.TextMessage.getText
throws
JMSException
| if the JMS provider fails to get the text due to some internal error. | true |
| false |
| JMS:JAVADOC:124 | void | javax.jms.TemporaryTopic.delete
| Deletes this temporary topic. If there are existing subscribers still using it, a JMSException will be thrown. | true |
| true |
| JMS:JAVADOC:125 | void | javax.jms.TemporaryTopic.delete
throws
JMSException
| if the JMS provider fails to delete the temporary topic due to some internal error. | true |
| false |
| JMS:JAVADOC:126 | void | javax.jms.TemporaryQueue.delete
| Deletes this temporary queue. If there are existing receivers still using it, a JMSException will be thrown. | true |
| true |
| JMS:JAVADOC:127 | void | javax.jms.TemporaryQueue.delete
throws
JMSException
| if the JMS provider fails to delete the temporary queue due to some internal error. | true |
| false |
| JMS:JAVADOC:128 | boolean | javax.jms.StreamMessage.readBoolean
| Reads a boolean from the stream message. | true |
| true |
| JMS:JAVADOC:129 | boolean | javax.jms.StreamMessage.readBoolean
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:130 | byte | javax.jms.StreamMessage.readByte
| Reads a byte value from the stream message. | true |
| true |
| JMS:JAVADOC:131 | byte | javax.jms.StreamMessage.readByte
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:132 | short | javax.jms.StreamMessage.readShort
| Reads a 16-bit integer from the stream message. | true |
| true |
| JMS:JAVADOC:133 | short | javax.jms.StreamMessage.readShort
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:134 | char | javax.jms.StreamMessage.readChar
| Reads a Unicode character value from the stream message. | true |
| true |
| JMS:JAVADOC:135 | char | javax.jms.StreamMessage.readChar
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:136 | int | javax.jms.StreamMessage.readInt
| Reads a 32-bit integer from the stream message. | true |
| true |
| JMS:JAVADOC:137 | int | javax.jms.StreamMessage.readInt
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:138 | long | javax.jms.StreamMessage.readLong
| Reads a 64-bit integer from the stream message. | true |
| true |
| JMS:JAVADOC:139 | long | javax.jms.StreamMessage.readLong
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:140 | float | javax.jms.StreamMessage.readFloat
| Reads a float from the stream message. | true |
| true |
| JMS:JAVADOC:141 | float | javax.jms.StreamMessage.readFloat
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:142 | double | javax.jms.StreamMessage.readDouble
| Reads a double from the stream message. | true |
| true |
| JMS:JAVADOC:143 | double | javax.jms.StreamMessage.readDouble
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:144 | String | javax.jms.StreamMessage.readString
| Reads a String from the stream message. | true |
| true |
| JMS:JAVADOC:145 | String | javax.jms.StreamMessage.readString
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:146 | int | javax.jms.StreamMessage.readBytes
(
byte[]
)
| Reads a byte array field from the stream message into the specified byte[] object (the read buffer). To read the field value, readBytes should be successively called until it returns a value less than the length of the read buffer. The value of the bytes in the buffer following the last byte read is undefined. If readBytes returns a value equal to the length of the buffer, a subsequent readBytes call must be made. If there are no more bytes to be read, this call returns -1. If the byte array field value is null, readBytes returns -1. If the byte array field value is empty, readBytes returns 0. Once the first readBytes call on a byte[] field value has been made, the full value of the field must be read before it is valid to read the next field. An attempt to read the next field before that has been done will throw a MessageFormatException. To read the byte field value into a new byte[] object, use the readObject method. | true |
| true |
| JMS:JAVADOC:147 | int | javax.jms.StreamMessage.readBytes
(
byte[]
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:148 | Object | javax.jms.StreamMessage.readObject
| Reads an object from the stream message. This method can be used to return, in objectified format, an object in the Java programming language ("Java object") that has been written to the stream with the equivalent writeObject method call, or its equivalent primitive writetype method. Note that byte values are returned as byte[], not Byte[]. An attempt to call readObject to read a byte field value into a new byte[] object before the full value of the byte field has been read will throw a MessageFormatException. | true |
| true |
| JMS:JAVADOC:149 | Object | javax.jms.StreamMessage.readObject
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:150 | void | javax.jms.StreamMessage.writeBoolean
(
boolean
)
| Writes a boolean to the stream message. The value true is written as the value (byte)1; the value false is written as the value (byte)0. | true |
| true |
| JMS:JAVADOC:151 | void | javax.jms.StreamMessage.writeBoolean
(
boolean
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:152 | void | javax.jms.StreamMessage.writeByte
(
byte
)
| Writes a byte to the stream message. | true |
| true |
| JMS:JAVADOC:153 | void | javax.jms.StreamMessage.writeByte
(
byte
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:154 | void | javax.jms.StreamMessage.writeShort
(
short
)
| Writes a short to the stream message. | true |
| true |
| JMS:JAVADOC:155 | void | javax.jms.StreamMessage.writeShort
(
short
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:156 | void | javax.jms.StreamMessage.writeChar
(
char
)
| Writes a char to the stream message. | true |
| true |
| JMS:JAVADOC:157 | void | javax.jms.StreamMessage.writeChar
(
char
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:158 | void | javax.jms.StreamMessage.writeInt
(
int
)
| Writes an int to the stream message. | true |
| true |
| JMS:JAVADOC:159 | void | javax.jms.StreamMessage.writeInt
(
int
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:160 | void | javax.jms.StreamMessage.writeLong
(
long
)
| Writes a long to the stream message. | true |
| true |
| JMS:JAVADOC:161 | void | javax.jms.StreamMessage.writeLong
(
long
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:162 | void | javax.jms.StreamMessage.writeFloat
(
float
)
| Writes a float to the stream message. | true |
| true |
| JMS:JAVADOC:163 | void | javax.jms.StreamMessage.writeFloat
(
float
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:164 | void | javax.jms.StreamMessage.writeDouble
(
double
)
| Writes a double to the stream message. | true |
| true |
| JMS:JAVADOC:165 | void | javax.jms.StreamMessage.writeDouble
(
double
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:166 | void | javax.jms.StreamMessage.writeString
(
String
)
| Writes a String to the stream message. | true |
| true |
| JMS:JAVADOC:167 | void | javax.jms.StreamMessage.writeString
(
String
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:168 | void | javax.jms.StreamMessage.writeBytes
(
byte[]
)
| Writes a byte array field to the stream message. The byte array value is written to the message as a byte array field. Consecutively written byte array fields are treated as two distinct fields when the fields are read. | true |
| true |
| JMS:JAVADOC:169 | void | javax.jms.StreamMessage.writeBytes
(
byte[]
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:170 | void | javax.jms.StreamMessage.writeBytes
(
byte[]
, int
, int
)
| Writes a portion of a byte array as a byte array field to the stream message. The a portion of the byte array value is written to the message as a byte array field. Consecutively written byte array fields are treated as two distinct fields when the fields are read. | true |
| true |
| JMS:JAVADOC:171 | void | javax.jms.StreamMessage.writeBytes
(
byte[]
, int
, int
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:172 | void | javax.jms.StreamMessage.writeObject
(
Object
)
| Writes an object to the stream message. This method works only for the objectified primitive object types (Integer, Double, Long ...), String objects, and byte arrays. | true |
| true |
| JMS:JAVADOC:173 | void | javax.jms.StreamMessage.writeObject
(
Object
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:174 | void | javax.jms.StreamMessage.reset
| Puts the message body in read-only mode and repositions the stream to the beginning. | true |
| true |
| JMS:JAVADOC:175 | void | javax.jms.StreamMessage.reset
throws
JMSException
| if the JMS provider fails to reset the message due to some internal error. | true |
| false |
| JMS:JAVADOC:176 | ServerSession | javax.jms.ServerSessionPool.getServerSession
| Return a server session from the pool. | false |
| true |
| JMS:JAVADOC:177 | ServerSession | javax.jms.ServerSessionPool.getServerSession
throws
JMSException
| if an application server fails to return a ServerSession out of its server session pool. | false |
| true |
| JMS:JAVADOC:178 | Session | javax.jms.ServerSession.getSession
| Return the ServerSession's Session. This must be a Session created by the same Connection that will be dispatching messages to it. The provider will assign one or more messages to the Session and then call start on the ServerSession. | false |
| true |
| JMS:JAVADOC:179 | Session | javax.jms.ServerSession.getSession
throws
JMSException
| if the JMS provider fails to get the associated session for this ServerSession due to some internal error. | false |
| false |
| JMS:JAVADOC:180 | void | javax.jms.ServerSession.start
| Cause the Session's run method to be called to process messages that were just assigned to it. | false |
| false |
| JMS:JAVADOC:181 | void | javax.jms.ServerSession.start
throws
JMSException
| if the JMS provider fails to start the server session to process messages due to some internal error. | false |
| false |
| JMS:JAVADOC:182 | Queue | javax.jms.QueueSession.createQueue
(
String
)
| Creates a queue identity given a Queue name. This facility is provided for the rare cases where clients need to dynamically manipulate queue identity. It allows the creation of a queue identity with a provider-specific name. Clients that depend on this ability are not portable. Note that this method is not for creating the physical queue. The physical creation of queues is an administrative task and is not to be initiated by the JMS API. The one exception is the creation of temporary queues, which is accomplished with the createTemporaryQueue method. | true |
| true |
| JMS:JAVADOC:183 | Queue | javax.jms.QueueSession.createQueue
(
String
)
throws
JMSException
| if the session fails to create a queue due to some internal error. | true |
| false |
| JMS:JAVADOC:184 | QueueReceiver | javax.jms.QueueSession.createReceiver
(
Queue
)
| Creates a QueueReceiver object to receive messages from the specified queue. | true |
| true |
| JMS:JAVADOC:185 | QueueReceiver | javax.jms.QueueSession.createReceiver
(
Queue
)
throws
JMSException
| if the session fails to create a receiver due to some internal error. | true |
| false |
| JMS:JAVADOC:186 | QueueReceiver | javax.jms.QueueSession.createReceiver
(
Queue
, String
)
| Creates a QueueReceiver object to receive messages from the specified queue using a message selector. | true |
| true |
| JMS:JAVADOC:187 | QueueReceiver | javax.jms.QueueSession.createReceiver
(
Queue
, String
)
throws
JMSException
| if the session fails to create a receiver due to some internal error. | true |
| false |
| JMS:JAVADOC:188 | QueueSender | javax.jms.QueueSession.createSender
(
Queue
)
| Creates a QueueSender object to send messages to the specified queue. | true |
| true |
| JMS:JAVADOC:189 | QueueSender | javax.jms.QueueSession.createSender
(
Queue
)
throws
JMSException
| if the session fails to create a sender due to some internal error. | true |
| false |
| JMS:JAVADOC:190 | QueueBrowser | javax.jms.QueueSession.createBrowser
(
Queue
)
| Creates a QueueBrowser object to peek at the messages on the specified queue. | true |
| true |
| JMS:JAVADOC:191 | QueueBrowser | javax.jms.QueueSession.createBrowser
(
Queue
)
throws
JMSException
| if the session fails to create a browser due to some internal error. | true |
| false |
| JMS:JAVADOC:192 | QueueBrowser | javax.jms.QueueSession.createBrowser
(
Queue
, String
)
| Creates a QueueBrowser object to peek at the messages on the specified queue using a message selector. | true |
| true |
| JMS:JAVADOC:193 | QueueBrowser | javax.jms.QueueSession.createBrowser
(
Queue
, String
)
throws
JMSException
| if the session fails to create a browser due to some internal error. | true |
| false |
| JMS:JAVADOC:194 | TemporaryQueue | javax.jms.QueueSession.createTemporaryQueue
| Creates a TemporaryQueue object. Its lifetime will be that of the QueueConnection unless it is deleted earlier. | true |
| true |
| JMS:JAVADOC:195 | TemporaryQueue | javax.jms.QueueSession.createTemporaryQueue
throws
JMSException
| if the session fails to create a temporary queue due to some internal error. | true |
| false |
| JMS:JAVADOC:196 | Queue | javax.jms.QueueSender.getQueue
| Gets the queue associated with this QueueSender. | true |
| true |
| JMS:JAVADOC:197 | Queue | javax.jms.QueueSender.getQueue
throws
JMSException
| if the JMS provider fails to get the queue for this QueueSender due to some internal error. | true |
| false |
| JMS:JAVADOC:198 | void | javax.jms.QueueSender.send
(
Message
)
| Sends a message to the queue. Uses the QueueSender's default delivery mode, priority, and time to live. | true |
| true |
| JMS:JAVADOC:199 | void | javax.jms.QueueSender.send
(
Message
)
throws
JMSException
| if the JMS provider fails to send the message due to some internal error. | true |
| false |
| JMS:JAVADOC:200 | void | javax.jms.QueueSender.send
(
Message
, int
, int
, long
)
| Sends a message to the queue, specifying delivery mode, priority, and time to live. | true |
| true |
| JMS:JAVADOC:201 | void | javax.jms.QueueSender.send
(
Message
, int
, int
, long
)
throws
JMSException
| if the JMS provider fails to send the message due to some internal error. | true |
| false |
| JMS:JAVADOC:202 | void | javax.jms.QueueSender.send
(
Queue
, Message
)
| Sends a message to a queue for an unidentified message producer. Uses the QueueSender's default delivery mode, priority, and time to live. Typically, a message producer is assigned a queue at creation time; however, the JMS API also supports unidentified message producers, which require that the queue be supplied every time a message is sent. | true |
| true |
| JMS:JAVADOC:203 | void | javax.jms.QueueSender.send
(
Queue
, Message
)
throws
JMSException
| if the JMS provider fails to send the message due to some internal error. | true |
| false |
| JMS:JAVADOC:204 | void | javax.jms.QueueSender.send
(
Queue
, Message
, int
, int
, long
)
| Sends a message to a queue for an unidentified message producer, specifying delivery mode, priority and time to live. Typically, a message producer is assigned a queue at creation time; however, the JMS API also supports unidentified message producers, which require that the queue be supplied every time a message is sent. | true |
| true |
| JMS:JAVADOC:205 | void | javax.jms.QueueSender.send
(
Queue
, Message
, int
, int
, long
)
throws
JMSException
| if the JMS provider fails to send the message due to some internal error. | true |
| false |
| JMS:JAVADOC:209 | BytesMessage | javax.jms.Session.createBytesMessage
| Creates a BytesMessage object. A BytesMessage object is used to send a message containing a stream of uninterpreted bytes. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:210 | BytesMessage | javax.jms.Session.createBytesMessage
throws
JMSException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:211 | MapMessage | javax.jms.Session.createMapMessage
| Creates a MapMessage object. A MapMessage object is used to send a self-defining set of name-value pairs, where names are String objects and values are primitive values in the Java programming language. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:212 | MapMessage | javax.jms.Session.createMapMessage
throws
JMSException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:213 | Message | javax.jms.Session.createMessage
| Creates a Message object. The Message interface is the root interface of all JMS messages. A Message object holds all the standard message header information. It can be sent when a message containing only header information is sufficient. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:214 | Message | javax.jms.Session.createMessage
throws
JMSException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:215 | ObjectMessage | javax.jms.Session.createObjectMessage
| Creates an ObjectMessage object. An ObjectMessage object is used to send a message that contains a serializable Java object. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:216 | ObjectMessage | javax.jms.Session.createObjectMessage
throws
JMSException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:217 | ObjectMessage | javax.jms.Session.createObjectMessage
(
Serializable
)
| Creates an initialized ObjectMessage object. An ObjectMessage object is used to send a message that contains a serializable Java object. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:218 | ObjectMessage | javax.jms.Session.createObjectMessage
(
Serializable
)
throws
JMSException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:219 | StreamMessage | javax.jms.Session.createStreamMessage
| Creates a StreamMessage object. A StreamMessage object is used to send a self-defining stream of primitive values in the Java programming language. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:220 | StreamMessage | javax.jms.Session.createStreamMessage
throws
JMSException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:221 | TextMessage | javax.jms.Session.createTextMessage
| Creates a TextMessage object. A TextMessage object is used to send a message containing a String object. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:222 | TextMessage | javax.jms.Session.createTextMessage
throws
JMSException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:223 | TextMessage | javax.jms.Session.createTextMessage
(
String
)
| Creates an initialized TextMessage object. A TextMessage object is used to send a message containing a String. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:224 | TextMessage | javax.jms.Session.createTextMessage
(
String
)
throws
JMSException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:225 | boolean | javax.jms.Session.getTransacted
| Indicates whether the session is in transacted mode. | true |
| true |
| JMS:JAVADOC:226 | boolean | javax.jms.Session.getTransacted
throws
JMSException
| if the JMS provider fails to return the transaction mode due to some internal error. | true |
| false |
| JMS:JAVADOC:227 | int | javax.jms.Session.getAcknowledgeMode
| Returns the acknowledgement mode of the session. The acknowledgement mode is set at the time that the session is created. If the session is transacted, the acknowledgement mode is ignored. | true |
| true |
| JMS:JAVADOC:228 | int | javax.jms.Session.getAcknowledgeMode
throws
JMSException
| if the JMS provider fails to return the acknowledgment mode due to some internal error. | true |
| false |
| JMS:JAVADOC:229 | void | javax.jms.Session.commit
| Commits all messages done in this transaction and releases any locks currently held. This method must not return until any incomplete asynchronous send operations for this Session have been completed and any CompletionListener callbacks have returned. Incomplete sends should be allowed to complete normally unless an error occurs. A CompletionListener callback method must not call commit on its own Session. Doing so will cause an IllegalStateException to be thrown. | true |
| true |
| JMS:JAVADOC:230 | void | javax.jms.Session.commit
throws
JMSException
| if the JMS provider fails to commit the transaction due to some internal error. | true |
| false |
| JMS:JAVADOC:231 | void | javax.jms.Session.rollback
| Rolls back any messages done in this transaction and releases any locks currently held. This method must not return until any incomplete asynchronous send operations for this Session have been completed and any CompletionListener callbacks have returned. Incomplete sends should be allowed to complete normally unless an error occurs. A CompletionListener callback method must not call commit on its own Session. Doing so will cause an IllegalStateException to be thrown. | true |
| true |
| JMS:JAVADOC:232 | void | javax.jms.Session.rollback
throws
JMSException
| if the JMS provider fails to roll back the transaction due to some internal error. | true |
| false |
| JMS:JAVADOC:233 | void | javax.jms.Session.close
| Closes the session. Since a provider may allocate some resources on behalf of a session outside the JVM, clients should close the resources when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. There is no need to close the producers and consumers of a closed session. This call will block until a receive call or message listener in progress has completed. A blocked message consumer receive call returns null when this session is closed. This method must not return until any incomplete asynchronous send operations for this Session have been completed and any CompletionListener callbacks have returned. Incomplete sends should be allowed to complete normally unless an error occurs. For the avoidance of doubt, if an exception listener for this session's connection is running when close is invoked, there is no requirement for the close call to wait until the exception listener has returned before it may return. Closing a transacted session must roll back the transaction in progress. This method is the only Session method that can be called concurrently. A MessageListener must not attempt to close its own Session as this would lead to deadlock. The JMS provider must detect this and throw a IllegalStateException. A CompletionListener callback method must not call close on its own Session. Doing so will cause an IllegalStateException to be thrown. Invoking any other Session method on a closed session must throw a IllegalStateException. Closing a closed session must not throw an exception. | true |
| true |
| JMS:JAVADOC:234 | void | javax.jms.Session.close
throws
JMSException
| if the JMS provider fails to close the session due to some internal error. | true |
| false |
| JMS:JAVADOC:235 | void | javax.jms.Session.recover
| Stops message delivery in this session, and restarts message delivery with the oldest unacknowledged message. All consumers deliver messages in a serial order. Acknowledging a received message automatically acknowledges all messages that have been delivered to the client. Restarting a session causes it to take the following actions: Stop message delivery Mark all messages that might have been delivered but not acknowledged as "redelivered" Restart the delivery sequence including all unacknowledged messages that had been previously delivered. Redelivered messages do not have to be delivered in exactly their original delivery order. | true |
| true |
| JMS:JAVADOC:236 | void | javax.jms.Session.recover
throws
JMSException
| if the JMS provider fails to stop and restart message delivery due to some internal error. | true |
| false |
| JMS:JAVADOC:237 | MessageListener | javax.jms.Session.getMessageListener
| Returns the session's distinguished message listener (optional). This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSException to be thrown though this is not guaranteed. | false |
| true |
| JMS:JAVADOC:238 | MessageListener | javax.jms.Session.getMessageListener
throws
JMSException
| if the JMS provider fails to get the session's distinguished message listener for one of the following reasons: an internal error has occurred this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | false |
| false |
| JMS:JAVADOC:239 | void | javax.jms.Session.setMessageListener
(
MessageListener
)
| Sets the session's distinguished message listener (optional). When the distinguished message listener is set, no other form of message receipt in the session can be used; however, all forms of sending messages are still supported. This is an expert facility not used by ordinary JMS clients. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSException to be thrown though this is not guaranteed. | false |
| true |
| JMS:JAVADOC:240 | void | javax.jms.Session.setMessageListener
(
MessageListener
)
throws
JMSException
| if the JMS provider fails to set the session's distinguished message listener for one of the following reasons: an internal error has occurred this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | false |
| false |
| JMS:JAVADOC:241 | void | javax.jms.Session.run
| Optional operation, intended to be used only by Application Servers, not by ordinary JMS clients. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSRuntimeException to be thrown though this is not guaranteed. | false |
| true |
| JMS:JAVADOC:242 | MessageProducer | javax.jms.Session.createProducer
(
Destination
)
| Creates a MessageProducer to send messages to the specified destination. A client uses a MessageProducer object to send messages to a destination. Since Queue and Topic both inherit from Destination, they can be used in the destination parameter to create a MessageProducer object. | true |
| true |
| JMS:JAVADOC:243 | MessageProducer | javax.jms.Session.createProducer
(
Destination
)
throws
JMSException
| if the session fails to create a MessageProducer due to some internal error. | true |
| false |
| JMS:JAVADOC:244 | MessageConsumer | javax.jms.Session.createConsumer
(
Destination
)
| Creates a MessageConsumer for the specified destination. Since Queue and Topic both inherit from Destination, they can be used in the destination parameter to create a MessageConsumer. | true |
| true |
| JMS:JAVADOC:245 | MessageConsumer | javax.jms.Session.createConsumer
(
Destination
)
throws
JMSException
| if the session fails to create a consumer due to some internal error. | true |
| false |
| JMS:JAVADOC:246 | MessageConsumer | javax.jms.Session.createConsumer
(
Destination
, String
)
| Creates a MessageConsumer for the specified destination, using a message selector. Since Queue and Topic both inherit from Destination, they can be used in the destination parameter to create a MessageConsumer. A client uses a MessageConsumer object to receive messages that have been sent to a destination. | true |
| true |
| JMS:JAVADOC:247 | MessageConsumer | javax.jms.Session.createConsumer
(
Destination
, String
)
throws
JMSException
| if the session fails to create a MessageConsumer due to some internal error. | true |
| false |
| JMS:JAVADOC:248 | MessageConsumer | javax.jms.Session.createConsumer
(
Destination
, String
, boolean
)
| Creates a MessageConsumer for the specified destination, specifying a message selector and the noLocal parameter. Since Queue and Topic both inherit from Destination, they can be used in the destination parameter to create a MessageConsumer. A client uses a MessageConsumer object to receive messages that have been published to a destination. The noLocal argument is for use when the destination is a topic and the session's connection is also being used to publish messages to that topic. If noLocal is set to true then the MessageConsumer will not receive messages published to the topic by its own connection. The default value of this argument is false. If the destination is a queue then the effect of setting noLocal to true is not specified. | true |
| true |
| JMS:JAVADOC:249 | MessageConsumer | javax.jms.Session.createConsumer
(
Destination
, String
, boolean
)
throws
JMSException
| if the session fails to create a MessageConsumer due to some internal error. | true |
| false |
| JMS:JAVADOC:250 | Queue | javax.jms.Session.createQueue
(
String
)
| Creates a Queue object which encapsulates a specified provider-specific queue name. The use of provider-specific queue names in an application may render the application non-portable. Portable applications are recommended to not use this method but instead look up an administratively-defined Queue object using JNDI. Note that this method simply creates an object that encapsulates the name of a queue. It does not create the physical queue in the JMS provider. JMS does not provide a method to create the physical queue, since this would be specific to a given JMS provider. Creating a physical queue is provider-specific and is typically an administrative task performed by an administrator, though some providers may create them automatically when needed. The one exception to this is the creation of a temporary queue, which is done using the createTemporaryQueue method. | true |
| false |
| JMS:JAVADOC:251 | Queue | javax.jms.Session.createQueue
(
String
)
throws
JMSException
| if a Queue object cannot be created due to some internal error | true |
| false |
| JMS:JAVADOC:252 | Topic | javax.jms.Session.createTopic
(
String
)
| Creates a Topic object which encapsulates a specified provider-specific topic name. The use of provider-specific topic names in an application may render the application non-portable. Portable applications are recommended to not use this method but instead look up an administratively-defined Topic object using JNDI. Note that this method simply creates an object that encapsulates the name of a topic. It does not create the physical topic in the JMS provider. JMS does not provide a method to create the physical topic, since this would be specific to a given JMS provider. Creating a physical topic is provider-specific and is typically an administrative task performed by an administrator, though some providers may create them automatically when needed. The one exception to this is the creation of a temporary topic, which is done using the createTemporaryTopic method. | true |
| false |
| JMS:JAVADOC:253 | Topic | javax.jms.Session.createTopic
(
String
)
throws
JMSException
| if a Topic object cannot be created due to some internal error | true |
| false |
| JMS:JAVADOC:254 | TopicSubscriber | javax.jms.Session.createDurableSubscriber
(
Topic
, String
)
| Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription. This method creates the durable subscription without a message selector and with a noLocal value of false. A durable subscription is used by an application which needs to receive all the messages published on a topic, including the ones published when there is no active consumer associated with it. The JMS provider retains a record of this durable subscription and ensures that all messages from the topic's publishers are retained until they are delivered to, and acknowledged by, a consumer on this durable subscription or until they have expired. A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method. This method may only be used with unshared durable subscriptions. Any durable subscription created using this method will be unshared. This means that only one active (i.e. not closed) consumer on the subscription may exist at a time. The term "consumer" here means a TopicSubscriber, MessageConsumer or JMSConsumer object in any client. An unshared durable subscription is identified by a name specified by the client and by the client identifier, which must be set. An application which subsequently wishes to create a consumer on that unshared durable subscription must use the same client identifier. If an unshared durable subscription already exists with the same name and client identifier, and the same topic, message selector and noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this method creates a TopicSubscriber on the existing durable subscription. If an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active (i.e. not closed) on the durable subscription, then a JMSException will be thrown. If an unshared durable subscription already exists with the same name and client identifier but a different topic, message selector or noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this is equivalent to unsubscribing (deleting) the old one and creating a new one. A shared durable subscription and an unshared durable subscription may not have the same name and client identifier. If a shared durable subscription already exists with the same name and client identifier then a JMSException is thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId. Such subscriptions would be completely separate. This method is identical to the corresponding createDurableConsumer method except that it returns a TopicSubscriber rather than a MessageConsumer to represent the consumer. | true |
| true |
| JMS:JAVADOC:255 | TopicSubscriber | javax.jms.Session.createDurableSubscriber
(
Topic
, String
)
throws
JMSException
| if the session fails to create the unshared durable subscription and TopicSubscriber due to some internal error if an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active if a shared durable subscription already exists with the same name and client identifier | true |
| false |
| JMS:JAVADOC:256 | TopicSubscriber | javax.jms.Session.createDurableSubscriber
(
Topic
, String
, String
, boolean
)
| Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and the noLocal parameter, and creates a consumer on that durable subscription. A durable subscription is used by an application which needs to receive all the messages published on a topic, including the ones published when there is no active consumer associated with it. The JMS provider retains a record of this durable subscription and ensures that all messages from the topic's publishers are retained until they are delivered to, and acknowledged by, a consumer on this durable subscription or until they have expired. A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method. This method may only be used with unshared durable subscriptions. Any durable subscription created using this method will be unshared. This means that only one active (i.e. not closed) consumer on the subscription may exist at a time. The term "consumer" here means a TopicSubscriber, MessageConsumer or JMSConsumer object in any client. An unshared durable subscription is identified by a name specified by the client and by the client identifier, which must be set. An application which subsequently wishes to create a consumer on that unshared durable subscription must use the same client identifier. If an unshared durable subscription already exists with the same name and client identifier, and the same topic, message selector and noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this method creates a TopicSubscriber on the existing durable subscription. If an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active (i.e. not closed) on the durable subscription, then a JMSException will be thrown. If an unshared durable subscription already exists with the same name and client identifier but a different topic, message selector or noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this is equivalent to unsubscribing (deleting) the old one and creating a new one. If noLocal is set to true then any messages published to the topic using this session's connection, or any other connection with the same client identifier, will not be added to the durable subscription. A shared durable subscription and an unshared durable subscription may not have the same name and client identifier. If a shared durable subscription already exists with the same name and client identifier then a JMSException is thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId. Such subscriptions would be completely separate. This method is identical to the corresponding createDurableConsumer method except that it returns a TopicSubscriber rather than a MessageConsumer to represent the consumer. | true |
| true |
| JMS:JAVADOC:257 | TopicSubscriber | javax.jms.Session.createDurableSubscriber
(
Topic
, String
, String
, boolean
)
throws
JMSException
| if the session fails to create the unshared durable subscription and TopicSubscriber due to some internal error if an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active if a shared durable subscription already exists with the same name and client identifier | true |
| false |
| JMS:JAVADOC:258 | QueueBrowser | javax.jms.Session.createBrowser
(
Queue
)
| Creates a QueueBrowser object to peek at the messages on the specified queue. | true |
| true |
| JMS:JAVADOC:259 | QueueBrowser | javax.jms.Session.createBrowser
(
Queue
)
throws
JMSException
| if the session fails to create a browser due to some internal error. | true |
| false |
| JMS:JAVADOC:260 | QueueBrowser | javax.jms.Session.createBrowser
(
Queue
, String
)
| Creates a QueueBrowser object to peek at the messages on the specified queue using a message selector. | true |
| true |
| JMS:JAVADOC:261 | QueueBrowser | javax.jms.Session.createBrowser
(
Queue
, String
)
throws
JMSException
| if the session fails to create a browser due to some internal error. | true |
| false |
| JMS:JAVADOC:262 | TemporaryQueue | javax.jms.Session.createTemporaryQueue
| Creates a TemporaryQueue object. Its lifetime will be that of the Connection unless it is deleted earlier. | true |
| true |
| JMS:JAVADOC:263 | TemporaryQueue | javax.jms.Session.createTemporaryQueue
throws
JMSException
| if the session fails to create a temporary queue due to some internal error. | true |
| false |
| JMS:JAVADOC:264 | TemporaryTopic | javax.jms.Session.createTemporaryTopic
| Creates a TemporaryTopic object. Its lifetime will be that of the Connection unless it is deleted earlier. | true |
| true |
| JMS:JAVADOC:265 | TemporaryTopic | javax.jms.Session.createTemporaryTopic
throws
JMSException
| if the session fails to create a temporary topic due to some internal error. | true |
| false |
| JMS:JAVADOC:266 | void | javax.jms.Session.unsubscribe
(
String
)
| Unsubscribes a durable subscription that has been created by a client. This method deletes the state being maintained on behalf of the subscriber by its provider. A durable subscription is identified by a name specified by the client and by the client identifier if set. If the client identifier was set when the durable subscription was created then a client which subsequently wishes to use this method to delete a durable subscription must use the same client identifier. It is erroneous for a client to delete a durable subscription while there is an active (not closed) consumer for the subscription, or while a consumed message is part of a pending transaction or has not been acknowledged in the session. | true |
| true |
| JMS:JAVADOC:267 | void | javax.jms.Session.unsubscribe
(
String
)
throws
JMSException
| if the session fails to unsubscribe to the durable subscription due to some internal error. | true |
| false |
| JMS:JAVADOC:268 | Queue | javax.jms.QueueReceiver.getQueue
| Gets the Queue associated with this queue receiver. | true |
| true |
| JMS:JAVADOC:269 | Queue | javax.jms.QueueReceiver.getQueue
throws
JMSException
| if the JMS provider fails to get the queue for this queue receiver due to some internal error. | true |
| false |
| JMS:JAVADOC:270 | QueueConnection | javax.jms.QueueConnectionFactory.createQueueConnection
| Creates a queue connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. . | true |
| true |
| JMS:JAVADOC:271 | QueueConnection | javax.jms.QueueConnectionFactory.createQueueConnection
throws
JMSException
| if the JMS provider fails to create the queue connection due to some internal error. | true |
| false |
| JMS:JAVADOC:272 | QueueConnection | javax.jms.QueueConnectionFactory.createQueueConnection
(
String
, String
)
| Creates a queue connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. | true |
| true |
| JMS:JAVADOC:273 | QueueConnection | javax.jms.QueueConnectionFactory.createQueueConnection
(
String
, String
)
throws
JMSException
| if the JMS provider fails to create the queue connection due to some internal error. | true |
| false |
| JMS:JAVADOC:274 | QueueSession | javax.jms.QueueConnection.createQueueSession
(
boolean
, int
)
| Creates a QueueSession object. | true |
| true |
| JMS:JAVADOC:275 | QueueSession | javax.jms.QueueConnection.createQueueSession
(
boolean
, int
)
throws
JMSException
| if the QueueConnection object fails to create a session due to some internal error or lack of support for the specific transaction and acknowledgement mode. | true |
| false |
| JMS:JAVADOC:276 | ConnectionConsumer | javax.jms.QueueConnection.createConnectionConsumer
(
Queue
, String
, ServerSessionPool
, int
)
| Creates a connection consumer for this connection (optional operation). This is an expert facility not used by regular JMS clients. | false |
| true |
| JMS:JAVADOC:277 | ConnectionConsumer | javax.jms.QueueConnection.createConnectionConsumer
(
Queue
, String
, ServerSessionPool
, int
)
throws
JMSException
| if the QueueConnection object fails to create a connection consumer due to some internal error or invalid arguments for sessionPool and messageSelector. | false |
| true |
| JMS:JAVADOC:278 | Queue | javax.jms.QueueBrowser.getQueue
| Gets the queue associated with this queue browser. | true |
| true |
| JMS:JAVADOC:279 | Queue | javax.jms.QueueBrowser.getQueue
throws
JMSException
| if the JMS provider fails to get the queue associated with this browser due to some internal error. | true |
| false |
| JMS:JAVADOC:280 | String | javax.jms.QueueBrowser.getMessageSelector
| Gets this queue browser's message selector expression. | true |
| true |
| JMS:JAVADOC:281 | String | javax.jms.QueueBrowser.getMessageSelector
throws
JMSException
| if the JMS provider fails to get the message selector for this browser due to some internal error. | true |
| false |
| JMS:JAVADOC:282 | Enumeration | javax.jms.QueueBrowser.getEnumeration
| Gets an enumeration for browsing the current queue messages in the order they would be received. | true |
| true |
| JMS:JAVADOC:283 | Enumeration | javax.jms.QueueBrowser.getEnumeration
throws
JMSException
| if the JMS provider fails to get the enumeration for this browser due to some internal error. | true |
| false |
| JMS:JAVADOC:284 | void | javax.jms.QueueBrowser.close
| Closes the QueueBrowser. Since a provider may allocate some resources on behalf of a QueueBrowser outside the Java virtual machine, clients should close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. | true |
| true |
| JMS:JAVADOC:285 | void | javax.jms.QueueBrowser.close
throws
JMSException
| if the JMS provider fails to close this browser due to some internal error. | true |
| false |
| JMS:JAVADOC:286 | String | javax.jms.Queue.getQueueName
| Gets the name of this queue. Clients that depend upon the name are not portable. | true |
| true |
| JMS:JAVADOC:287 | String | javax.jms.Queue.getQueueName
throws
JMSException
| if the JMS provider implementation of Queue fails to return the queue name due to some internal error. | true |
| false |
| JMS:JAVADOC:288 | String | javax.jms.Queue.toString
| Returns a string representation of this object. | true |
| true |
| JMS:JAVADOC:289 | void | javax.jms.ObjectMessage.setObject
(
Serializable
)
| Sets the serializable object containing this message's data. It is important to note that an ObjectMessage contains a snapshot of the object at the time setObject() is called; subsequent modifications of the object will have no effect on the ObjectMessage body. | true |
| true |
| JMS:JAVADOC:290 | void | javax.jms.ObjectMessage.setObject
(
Serializable
)
throws
JMSException
| if the JMS provider fails to set the object due to some internal error. | true |
| false |
| JMS:JAVADOC:291 | Serializable | javax.jms.ObjectMessage.getObject
| Gets the serializable object containing this message's data. The default value is null. | true |
| true |
| JMS:JAVADOC:292 | Serializable | javax.jms.ObjectMessage.getObject
throws
JMSException
| if the JMS provider fails to get the object due to some internal error. | true |
| false |
| JMS:JAVADOC:293 | void | javax.jms.MessageProducer.setDisableMessageID
(
boolean
)
| Specify whether message IDs may be disabled. Since message IDs take some effort to create and increase a message's size, some JMS providers may be able to optimise message overhead if they are given a hint that the message ID is not used by an application. By calling this method, a JMS application enables this potential optimisation for all messages sent using this MessageProducer. If the JMS provider accepts this hint, these messages must have the message ID set to null; if the provider ignores the hint, the message ID must be set to its normal unique value. Message IDs are enabled by default. | true |
| true |
| JMS:JAVADOC:294 | void | javax.jms.MessageProducer.setDisableMessageID
(
boolean
)
throws
JMSException
| if the JMS provider fails to set message ID to disabled due to some internal error. | true |
| false |
| JMS:JAVADOC:295 | boolean | javax.jms.MessageProducer.getDisableMessageID
| Gets an indication of whether message IDs are disabled. | true |
| true |
| JMS:JAVADOC:296 | boolean | javax.jms.MessageProducer.getDisableMessageID
throws
JMSException
| if the JMS provider fails to determine if message IDs are disabled due to some internal error. | true |
| false |
| JMS:JAVADOC:297 | void | javax.jms.MessageProducer.setDisableMessageTimestamp
(
boolean
)
| Specify whether message timestamps may be disabled. Since timestamps take some effort to create and increase a message's size, some JMS providers may be able to optimise message overhead if they are given a hint that the timestamp is not used by an application. By calling this method, a JMS application enables this potential optimisation for all messages sent using this MessageProducer. If the JMS provider accepts this hint, these messages must have the timestamp set to zero; if the provider ignores the hint, the timestamp must be set to its normal value. Message timestamps are enabled by default. | true |
| true |
| JMS:JAVADOC:298 | void | javax.jms.MessageProducer.setDisableMessageTimestamp
(
boolean
)
throws
JMSException
| if the JMS provider fails to set timestamps to disabled due to some internal error. | true |
| false |
| JMS:JAVADOC:299 | boolean | javax.jms.MessageProducer.getDisableMessageTimestamp
| Gets an indication of whether message timestamps are disabled. | true |
| true |
| JMS:JAVADOC:300 | boolean | javax.jms.MessageProducer.getDisableMessageTimestamp
throws
JMSException
| if the JMS provider fails to determine if timestamps are disabled due to some internal error. | true |
| false |
| JMS:JAVADOC:301 | void | javax.jms.MessageProducer.setDeliveryMode
(
int
)
| Sets the producer's default delivery mode. Delivery mode is set to PERSISTENT by default. | true |
| true |
| JMS:JAVADOC:302 | void | javax.jms.MessageProducer.setDeliveryMode
(
int
)
throws
JMSException
| if the JMS provider fails to set the delivery mode due to some internal error. | true |
| false |
| JMS:JAVADOC:303 | int | javax.jms.MessageProducer.getDeliveryMode
| Gets the producer's default delivery mode. | true |
| true |
| JMS:JAVADOC:304 | int | javax.jms.MessageProducer.getDeliveryMode
throws
JMSException
| if the JMS provider fails to get the delivery mode due to some internal error. | true |
| false |
| JMS:JAVADOC:305 | void | javax.jms.MessageProducer.setPriority
(
int
)
| Sets the producer's default priority. The JMS API defines ten levels of priority value, with 0 as the lowest priority and 9 as the highest. Clients should consider priorities 0-4 as gradations of normal priority and priorities 5-9 as gradations of expedited priority. Priority is set to 4 by default. | true |
| true |
| JMS:JAVADOC:306 | void | javax.jms.MessageProducer.setPriority
(
int
)
throws
JMSException
| if the JMS provider fails to set the priority due to some internal error. | true |
| false |
| JMS:JAVADOC:307 | int | javax.jms.MessageProducer.getPriority
| Gets the producer's default priority. | true |
| true |
| JMS:JAVADOC:308 | int | javax.jms.MessageProducer.getPriority
throws
JMSException
| if the JMS provider fails to get the priority due to some internal error. | true |
| false |
| JMS:JAVADOC:309 | void | javax.jms.MessageProducer.setTimeToLive
(
long
)
| Sets the default length of time in milliseconds from its dispatch time that a produced message should be retained by the message system. Time to live is set to zero by default. | true |
| true |
| JMS:JAVADOC:310 | void | javax.jms.MessageProducer.setTimeToLive
(
long
)
throws
JMSException
| if the JMS provider fails to set the time to live due to some internal error. | true |
| false |
| JMS:JAVADOC:311 | long | javax.jms.MessageProducer.getTimeToLive
| Gets the default length of time in milliseconds from its dispatch time that a produced message should be retained by the message system. | true |
| true |
| JMS:JAVADOC:312 | long | javax.jms.MessageProducer.getTimeToLive
throws
JMSException
| if the JMS provider fails to get the time to live due to some internal error. | true |
| false |
| JMS:JAVADOC:313 | Destination | javax.jms.MessageProducer.getDestination
| Gets the destination associated with this MessageProducer. | true |
| true |
| JMS:JAVADOC:314 | Destination | javax.jms.MessageProducer.getDestination
throws
JMSException
| if the JMS provider fails to get the destination for this MessageProducer due to some internal error. | true |
| false |
| JMS:JAVADOC:315 | void | javax.jms.MessageProducer.close
| Closes the message producer. Since a provider may allocate some resources on behalf of a MessageProducer outside the Java virtual machine, clients should close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. This method must not return until any incomplete asynchronous send operations for this MessageProducer have been completed and any CompletionListener callbacks have returned. Incomplete sends should be allowed to complete normally unless an error occurs. A CompletionListener callback method must not call close on its own MessageProducer. Doing so will cause an IllegalStateException to be thrown. | true |
| true |
| JMS:JAVADOC:316 | void | javax.jms.MessageProducer.close
throws
JMSException
| if the JMS provider fails to close the producer due to some internal error. | true |
| false |
| JMS:JAVADOC:317 | void | javax.jms.MessageProducer.send
(
Message
)
| Sends a message using the MessageProducer's default delivery mode, priority, and time to live. | true |
| true |
| JMS:JAVADOC:318 | void | javax.jms.MessageProducer.send
(
Message
)
throws
JMSException
| if the JMS provider fails to send the message due to some internal error. | true |
| false |
| JMS:JAVADOC:319 | void | javax.jms.MessageProducer.send
(
Message
, int
, int
, long
)
| Sends a message, specifying delivery mode, priority, and time to live. | true |
| true |
| JMS:JAVADOC:320 | void | javax.jms.MessageProducer.send
(
Message
, int
, int
, long
)
throws
JMSException
| if the JMS provider fails to send the message due to some internal error. | true |
| false |
| JMS:JAVADOC:321 | void | javax.jms.MessageProducer.send
(
Destination
, Message
)
| Sends a message to a destination for an unidentified message producer using the MessageProducer's default delivery mode, priority, and time to live. Typically, a message producer is assigned a destination at creation time; however, the JMS API also supports unidentified message producers, which require that the destination be supplied every time a message is sent. | true |
| true |
| JMS:JAVADOC:322 | void | javax.jms.MessageProducer.send
(
Destination
, Message
)
throws
JMSException
| if the JMS provider fails to send the message due to some internal error. | true |
| false |
| JMS:JAVADOC:323 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, int
, int
, long
)
| Sends a message to a destination for an unidentified message producer, specifying delivery mode, priority and time to live. Typically, a message producer is assigned a destination at creation time; however, the JMS API also supports unidentified message producers, which require that the destination be supplied every time a message is sent. | true |
| true |
| JMS:JAVADOC:324 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, int
, int
, long
)
throws
JMSException
| if the JMS provider fails to send the message due to some internal error. | true |
| false |
| JMS:JAVADOC:325 | void | javax.jms.MessageListener.onMessage
(
Message
)
| Passes a message to the listener. | true |
| true |
| JMS:JAVADOC:326 | String | javax.jms.MessageConsumer.getMessageSelector
| Gets this message consumer's message selector expression. | true |
| true |
| JMS:JAVADOC:327 | String | javax.jms.MessageConsumer.getMessageSelector
throws
JMSException
| if the JMS provider fails to get the message selector due to some internal error. | true |
| false |
| JMS:JAVADOC:328 | MessageListener | javax.jms.MessageConsumer.getMessageListener
| Gets the MessageConsumer's MessageListener. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSException to be thrown though this is not guaranteed. | true |
| true |
| JMS:JAVADOC:329 | MessageListener | javax.jms.MessageConsumer.getMessageListener
throws
JMSException
| if the JMS provider fails to get the MessageListener for one of the following reasons: an internal error has occurred or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | true |
| false |
| JMS:JAVADOC:330 | void | javax.jms.MessageConsumer.setMessageListener
(
MessageListener
)
| Sets the MessageConsumer's MessageListener. Setting the the MessageListener to null is the equivalent of unsetting the MessageListener for the MessageConsumer. The effect of calling this method while messages are being consumed by an existing listener or the MessageConsumer is being used to consume messages synchronously is undefined. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSException to be thrown though this is not guaranteed. | true |
| true |
| JMS:JAVADOC:331 | void | javax.jms.MessageConsumer.setMessageListener
(
MessageListener
)
throws
JMSException
| if the JMS provider fails to set the MessageConsumer's MessageListener for one of the following reasons: an internal error has occurred or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | true |
| false |
| JMS:JAVADOC:332 | Message | javax.jms.MessageConsumer.receive
| Receives the next message produced for this message consumer. This call blocks indefinitely until a message is produced or until this message consumer is closed. If this receive is done within a transaction, the consumer retains the message until the transaction commits. | true |
| true |
| JMS:JAVADOC:333 | Message | javax.jms.MessageConsumer.receive
throws
JMSException
| if the JMS provider fails to receive the next message due to some internal error. | true |
| false |
| JMS:JAVADOC:334 | Message | javax.jms.MessageConsumer.receive
(
long
)
| Receives the next message that arrives within the specified timeout interval. This call blocks until a message arrives, the timeout expires, or this message consumer is closed. A timeout of zero never expires, and the call blocks indefinitely. | true |
| true |
| JMS:JAVADOC:335 | Message | javax.jms.MessageConsumer.receive
(
long
)
throws
JMSException
| if the JMS provider fails to receive the next message due to some internal error. | true |
| false |
| JMS:JAVADOC:336 | Message | javax.jms.MessageConsumer.receiveNoWait
| Receives the next message if one is immediately available. | true |
| true |
| JMS:JAVADOC:337 | Message | javax.jms.MessageConsumer.receiveNoWait
throws
JMSException
| if the JMS provider fails to receive the next message due to some internal error. | true |
| false |
| JMS:JAVADOC:338 | void | javax.jms.MessageConsumer.close
| Closes the message consumer. Since a provider may allocate some resources on behalf of a MessageConsumer outside the Java virtual machine, clients should close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. This call will block until a receive call in progress on this consumer has completed. A blocked receive call returns null when this message consumer is closed. If this method is called whilst a message listener is in progress in another thread then it will block until the message listener has completed. This method may be called from a message listener's onMessage method on its own consumer. After this method returns the onMessage method will be allowed to complete normally. This method is the only MessageConsumer method that can be called concurrently. | true |
| true |
| JMS:JAVADOC:339 | void | javax.jms.MessageConsumer.close
throws
JMSException
| if the JMS provider fails to close the consumer due to some internal error. | true |
| false |
| JMS:JAVADOC:343 | String | javax.jms.Message.getJMSMessageID
| Gets the message ID. The JMSMessageID header field contains a value that uniquely identifies each message sent by a provider. When a message is sent, JMSMessageID can be ignored. When the send or publish method returns, it contains a provider-assigned value. A JMSMessageID is a String value that should function as a unique key for identifying messages in a historical repository. The exact scope of uniqueness is provider-defined. It should at least cover all messages for a specific installation of a provider, where an installation is some connected set of message routers. All JMSMessageID values must start with the prefix 'ID:'. Uniqueness of message ID values across different providers is not required. Since message IDs take some effort to create and increase a message's size, some JMS providers may be able to optimize message overhead if they are given a hint that the message ID is not used by an application. By calling the MessageProducer.setDisableMessageID method, a JMS client enables this potential optimization for all messages sent by that message producer. If the JMS provider accepts this hint, these messages must have the message ID set to null; if the provider ignores the hint, the message ID must be set to its normal unique value. | true |
| true |
| JMS:JAVADOC:344 | String | javax.jms.Message.getJMSMessageID
throws
JMSException
| if the JMS provider fails to get the message ID due to some internal error. | true |
| false |
| JMS:JAVADOC:345 | void | javax.jms.Message.setJMSMessageID
(
String
)
| Sets the message ID. This method is for use by JMS providers only to set this field when a message is sent. This message cannot be used by clients to configure the message ID. This method is public to allow a JMS provider to set this field when sending a message whose implementation is not its own. | true |
| true |
| JMS:JAVADOC:346 | void | javax.jms.Message.setJMSMessageID
(
String
)
throws
JMSException
| if the JMS provider fails to set the message ID due to some internal error. | true |
| false |
| JMS:JAVADOC:347 | long | javax.jms.Message.getJMSTimestamp
| Gets the message timestamp. The JMSTimestamp header field contains the time a message was handed off to a provider to be sent. It is not the time the message was actually transmitted, because the actual send may occur later due to transactions or other client-side queueing of messages. When a message is sent, JMSTimestamp is ignored. When the send or publish method returns, it contains a time value somewhere in the interval between the call and the return. The value is in the format of a normal millis time value in the Java programming language. Since timestamps take some effort to create and increase a message's size, some JMS providers may be able to optimize message overhead if they are given a hint that the timestamp is not used by an application. By calling the MessageProducer.setDisableMessageTimestamp method, a JMS client enables this potential optimization for all messages sent by that message producer. If the JMS provider accepts this hint, these messages must have the timestamp set to zero; if the provider ignores the hint, the timestamp must be set to its normal value. | true |
| true |
| JMS:JAVADOC:348 | long | javax.jms.Message.getJMSTimestamp
throws
JMSException
| if the JMS provider fails to get the timestamp due to some internal error. | true |
| false |
| JMS:JAVADOC:349 | void | javax.jms.Message.setJMSTimestamp
(
long
)
| Sets the message timestamp. This method is for use by JMS providers only to set this field when a message is sent. This message cannot be used by clients to configure the message timestamp. This method is public to allow a JMS provider to set this field when sending a message whose implementation is not its own. | true |
| true |
| JMS:JAVADOC:350 | void | javax.jms.Message.setJMSTimestamp
(
long
)
throws
JMSException
| if the JMS provider fails to set the timestamp due to some internal error. | true |
| false |
| JMS:JAVADOC:351 | byte[] | javax.jms.Message.getJMSCorrelationIDAsBytes
| Gets the correlation ID as an array of bytes for the message. The use of a byte[] value for JMSCorrelationID is non-portable. | false |
| true |
| JMS:JAVADOC:352 | byte[] | javax.jms.Message.getJMSCorrelationIDAsBytes
throws
JMSException
| if the JMS provider fails to get the correlation ID due to some internal error. | false |
| false |
| JMS:JAVADOC:353 | void | javax.jms.Message.setJMSCorrelationIDAsBytes
(
byte[]
)
| Sets the correlation ID as an array of bytes for the message. The array is copied before the method returns, so future modifications to the array will not alter this message header. If a provider supports the native concept of correlation ID, a JMS client may need to assign specific JMSCorrelationID values to match those expected by native messaging clients. JMS providers without native correlation ID values are not required to support this method and its corresponding get method; their implementation may throw a java.lang.UnsupportedOperationException. The use of a byte[] value for JMSCorrelationID is non-portable. | false |
| true |
| JMS:JAVADOC:354 | void | javax.jms.Message.setJMSCorrelationIDAsBytes
(
byte[]
)
throws
JMSException
| if the JMS provider fails to set the correlation ID due to some internal error. | false |
| false |
| JMS:JAVADOC:355 | void | javax.jms.Message.setJMSCorrelationID
(
String
)
| Sets the correlation ID for the message. A client can use the JMSCorrelationID header field to link one message with another. A typical use is to link a response message with its request message. JMSCorrelationID can hold one of the following: A provider-specific message ID An application-specific String A provider-native byte[] value Since each message sent by a JMS provider is assigned a message ID value, it is convenient to link messages via message ID. All message ID values must start with the 'ID:' prefix. In some cases, an application (made up of several clients) needs to use an application-specific value for linking messages. For instance, an application may use JMSCorrelationID to hold a value referencing some external information. Application-specified values must not start with the 'ID:' prefix; this is reserved for provider-generated message ID values. If a provider supports the native concept of correlation ID, a JMS client may need to assign specific JMSCorrelationID values to match those expected by clients that do not use the JMS API. A byte[] value is used for this purpose. JMS providers without native correlation ID values are not required to support byte[] values. The use of a byte[] value for JMSCorrelationID is non-portable. | true |
| true |
| JMS:JAVADOC:356 | void | javax.jms.Message.setJMSCorrelationID
(
String
)
throws
JMSException
| if the JMS provider fails to set the correlation ID due to some internal error. | true |
| false |
| JMS:JAVADOC:357 | String | javax.jms.Message.getJMSCorrelationID
| Gets the correlation ID for the message. This method is used to return correlation ID values that are either provider-specific message IDs or application-specific String values. | true |
| true |
| JMS:JAVADOC:358 | String | javax.jms.Message.getJMSCorrelationID
throws
JMSException
| if the JMS provider fails to get the correlation ID due to some internal error. | true |
| false |
| JMS:JAVADOC:359 | Destination | javax.jms.Message.getJMSReplyTo
| Gets the Destination object to which a reply to this message should be sent. | true |
| true |
| JMS:JAVADOC:360 | Destination | javax.jms.Message.getJMSReplyTo
throws
JMSException
| if the JMS provider fails to get the JMSReplyTo destination due to some internal error. | true |
| false |
| JMS:JAVADOC:361 | void | javax.jms.Message.setJMSReplyTo
(
Destination
)
| Sets the Destination object to which a reply to this message should be sent. The JMSReplyTo header field contains the destination where a reply to the current message should be sent. If it is null, no reply is expected. The destination may be either a Queue object or a Topic object. Messages sent with a null JMSReplyTo value may be a notification of some event, or they may just be some data the sender thinks is of interest. Messages with a JMSReplyTo value typically expect a response. A response is optional; it is up to the client to decide. These messages are called requests. A message sent in response to a request is called a reply. In some cases a client may wish to match a request it sent earlier with a reply it has just received. The client can use the JMSCorrelationID header field for this purpose. | true |
| true |
| JMS:JAVADOC:362 | void | javax.jms.Message.setJMSReplyTo
(
Destination
)
throws
JMSException
| if the JMS provider fails to set the JMSReplyTo destination due to some internal error. | true |
| false |
| JMS:JAVADOC:363 | Destination | javax.jms.Message.getJMSDestination
| Gets the Destination object for this message. The JMSDestination header field contains the destination to which the message is being sent. When a message is sent, this field is ignored. After completion of the send or publish method, the field holds the destination specified by the method. When a message is received, its JMSDestination value must be equivalent to the value assigned when it was sent. | true |
| true |
| JMS:JAVADOC:364 | Destination | javax.jms.Message.getJMSDestination
throws
JMSException
| if the JMS provider fails to get the destination due to some internal error. | true |
| false |
| JMS:JAVADOC:365 | void | javax.jms.Message.setJMSDestination
(
Destination
)
| Sets the Destination object for this message. This method is for use by JMS providers only to set this field when a message is sent. This message cannot be used by clients to configure the destination of the message. This method is public to allow a JMS provider to set this field when sending a message whose implementation is not its own. | true |
| true |
| JMS:JAVADOC:366 | void | javax.jms.Message.setJMSDestination
(
Destination
)
throws
JMSException
| if the JMS provider fails to set the destination due to some internal error. | true |
| false |
| JMS:JAVADOC:367 | int | javax.jms.Message.getJMSDeliveryMode
| Gets the DeliveryMode value specified for this message. | true |
| true |
| JMS:JAVADOC:368 | int | javax.jms.Message.getJMSDeliveryMode
throws
JMSException
| if the JMS provider fails to get the delivery mode due to some internal error. | true |
| false |
| JMS:JAVADOC:369 | void | javax.jms.Message.setJMSDeliveryMode
(
int
)
| Sets the DeliveryMode value for this message. This method is for use by JMS providers only to set this field when a message is sent. This message cannot be used by clients to configure the delivery mode of the message. This method is public to allow a JMS provider to set this field when sending a message whose implementation is not its own. | true |
| true |
| JMS:JAVADOC:370 | void | javax.jms.Message.setJMSDeliveryMode
(
int
)
throws
JMSException
| if the JMS provider fails to set the delivery mode due to some internal error. | true |
| false |
| JMS:JAVADOC:371 | boolean | javax.jms.Message.getJMSRedelivered
| Gets an indication of whether this message is being redelivered. If a client receives a message with the JMSRedelivered field set, it is likely, but not guaranteed, that this message was delivered earlier but that its receipt was not acknowledged at that time. | true |
| true |
| JMS:JAVADOC:372 | boolean | javax.jms.Message.getJMSRedelivered
throws
JMSException
| if the JMS provider fails to get the redelivered state due to some internal error. | true |
| false |
| JMS:JAVADOC:373 | void | javax.jms.Message.setJMSRedelivered
(
boolean
)
| Specifies whether this message is being redelivered. This method is for use by JMS providers only to set this field when a message is delivered. This message cannot be used by clients to configure the redelivered status of the message. This method is public to allow a JMS provider to set this field when sending a message whose implementation is not its own. | true |
| true |
| JMS:JAVADOC:374 | void | javax.jms.Message.setJMSRedelivered
(
boolean
)
throws
JMSException
| if the JMS provider fails to set the redelivered state due to some internal error. | true |
| false |
| JMS:JAVADOC:375 | String | javax.jms.Message.getJMSType
| Gets the message type identifier supplied by the client when the message was sent. | true |
| true |
| JMS:JAVADOC:376 | String | javax.jms.Message.getJMSType
throws
JMSException
| if the JMS provider fails to get the message type due to some internal error. | true |
| false |
| JMS:JAVADOC:377 | void | javax.jms.Message.setJMSType
(
String
)
| Sets the message type. Some JMS providers use a message repository that contains the definitions of messages sent by applications. The JMSType header field may reference a message's definition in the provider's repository. The JMS API does not define a standard message definition repository, nor does it define a naming policy for the definitions it contains. Some messaging systems require that a message type definition for each application message be created and that each message specify its type. In order to work with such JMS providers, JMS clients should assign a value to JMSType, whether the application makes use of it or not. This ensures that the field is properly set for those providers that require it. To ensure portability, JMS clients should use symbolic values for JMSType that can be configured at installation time to the values defined in the current provider's message repository. If string literals are used, they may not be valid type names for some JMS providers. | true |
| true |
| JMS:JAVADOC:378 | void | javax.jms.Message.setJMSType
(
String
)
throws
JMSException
| if the JMS provider fails to set the message type due to some internal error. | true |
| false |
| JMS:JAVADOC:379 | long | javax.jms.Message.getJMSExpiration
| Gets the message's expiration time. When a message is sent, the JMSExpiration header field is left unassigned. After completion of the send or publish method, it holds the expiration time of the message. This is the the difference, measured in milliseconds, between the expiration time and midnight, January 1, 1970 UTC. If the time-to-live is specified as zero, JMSExpiration is set to zero to indicate that the message does not expire. When a message's expiration time is reached, a provider should discard it. The JMS API does not define any form of notification of message expiration. Clients should not receive messages that have expired; however, the JMS API does not guarantee that this will not happen. | true |
| true |
| JMS:JAVADOC:380 | long | javax.jms.Message.getJMSExpiration
throws
JMSException
| if the JMS provider fails to get the message expiration due to some internal error. | true |
| false |
| JMS:JAVADOC:381 | void | javax.jms.Message.setJMSExpiration
(
long
)
| Sets the message's expiration value. This method is for use by JMS providers only to set this field when a message is sent. This message cannot be used by clients to configure the expiration time of the message. This method is public to allow a JMS provider to set this field when sending a message whose implementation is not its own. | true |
| true |
| JMS:JAVADOC:382 | void | javax.jms.Message.setJMSExpiration
(
long
)
throws
JMSException
| if the JMS provider fails to set the message expiration due to some internal error. | true |
| false |
| JMS:JAVADOC:383 | int | javax.jms.Message.getJMSPriority
| Gets the message priority level. The JMS API defines ten levels of priority value, with 0 as the lowest priority and 9 as the highest. In addition, clients should consider priorities 0-4 as gradations of normal priority and priorities 5-9 as gradations of expedited priority. The JMS API does not require that a provider strictly implement priority ordering of messages; however, it should do its best to deliver expedited messages ahead of normal messages. | true |
| true |
| JMS:JAVADOC:384 | int | javax.jms.Message.getJMSPriority
throws
JMSException
| if the JMS provider fails to get the message priority due to some internal error. | true |
| false |
| JMS:JAVADOC:385 | void | javax.jms.Message.setJMSPriority
(
int
)
| Sets the priority level for this message. This method is for use by JMS providers only to set this field when a message is sent. This message cannot be used by clients to configure the priority level of the message. This method is public to allow a JMS provider to set this field when sending a message whose implementation is not its own. | true |
| true |
| JMS:JAVADOC:386 | void | javax.jms.Message.setJMSPriority
(
int
)
throws
JMSException
| if the JMS provider fails to set the message priority due to some internal error. | true |
| false |
| JMS:JAVADOC:387 | void | javax.jms.Message.clearProperties
| Clears a message's properties. The message's header fields and body are not cleared. | true |
| true |
| JMS:JAVADOC:388 | void | javax.jms.Message.clearProperties
throws
JMSException
| if the JMS provider fails to clear the message properties due to some internal error. | true |
| false |
| JMS:JAVADOC:389 | boolean | javax.jms.Message.propertyExists
(
String
)
| Indicates whether a property value exists. | true |
| true |
| JMS:JAVADOC:390 | boolean | javax.jms.Message.propertyExists
(
String
)
throws
JMSException
| if the JMS provider fails to determine if the property exists due to some internal error. | true |
| false |
| JMS:JAVADOC:391 | boolean | javax.jms.Message.getBooleanProperty
(
String
)
| Returns the value of the boolean property with the specified name. | true |
| true |
| JMS:JAVADOC:392 | boolean | javax.jms.Message.getBooleanProperty
(
String
)
throws
JMSException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:393 | byte | javax.jms.Message.getByteProperty
(
String
)
| Returns the value of the byte property with the specified name. | true |
| true |
| JMS:JAVADOC:394 | byte | javax.jms.Message.getByteProperty
(
String
)
throws
JMSException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:395 | short | javax.jms.Message.getShortProperty
(
String
)
| Returns the value of the short property with the specified name. | true |
| true |
| JMS:JAVADOC:396 | short | javax.jms.Message.getShortProperty
(
String
)
throws
JMSException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:397 | int | javax.jms.Message.getIntProperty
(
String
)
| Returns the value of the int property with the specified name. | true |
| true |
| JMS:JAVADOC:398 | int | javax.jms.Message.getIntProperty
(
String
)
throws
JMSException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:399 | long | javax.jms.Message.getLongProperty
(
String
)
| Returns the value of the long property with the specified name. | true |
| true |
| JMS:JAVADOC:400 | long | javax.jms.Message.getLongProperty
(
String
)
throws
JMSException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:401 | float | javax.jms.Message.getFloatProperty
(
String
)
| Returns the value of the float property with the specified name. | true |
| true |
| JMS:JAVADOC:402 | float | javax.jms.Message.getFloatProperty
(
String
)
throws
JMSException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:403 | double | javax.jms.Message.getDoubleProperty
(
String
)
| Returns the value of the double property with the specified name. | true |
| true |
| JMS:JAVADOC:404 | double | javax.jms.Message.getDoubleProperty
(
String
)
throws
JMSException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:405 | String | javax.jms.Message.getStringProperty
(
String
)
| Returns the value of the String property with the specified name. | true |
| true |
| JMS:JAVADOC:406 | String | javax.jms.Message.getStringProperty
(
String
)
throws
JMSException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:407 | Object | javax.jms.Message.getObjectProperty
(
String
)
| Returns the value of the Java object property with the specified name. This method can be used to return, in objectified format, an object that has been stored as a property in the message with the equivalent setObjectProperty method call, or its equivalent primitive settypeProperty method. | true |
| true |
| JMS:JAVADOC:408 | Object | javax.jms.Message.getObjectProperty
(
String
)
throws
JMSException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:409 | Enumeration | javax.jms.Message.getPropertyNames
| Returns an Enumeration of all the property names. Note that JMS standard header fields are not considered properties and are not returned in this enumeration. | true |
| true |
| JMS:JAVADOC:410 | Enumeration | javax.jms.Message.getPropertyNames
throws
JMSException
| if the JMS provider fails to get the property names due to some internal error. | true |
| false |
| JMS:JAVADOC:411 | void | javax.jms.Message.setBooleanProperty
(
String
, boolean
)
| Sets a boolean property value with the specified name into the message. | true |
| true |
| JMS:JAVADOC:412 | void | javax.jms.Message.setBooleanProperty
(
String
, boolean
)
throws
JMSException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:413 | void | javax.jms.Message.setByteProperty
(
String
, byte
)
| Sets a byte property value with the specified name into the message. | true |
| true |
| JMS:JAVADOC:414 | void | javax.jms.Message.setByteProperty
(
String
, byte
)
throws
JMSException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:415 | void | javax.jms.Message.setShortProperty
(
String
, short
)
| Sets a short property value with the specified name into the message. | true |
| true |
| JMS:JAVADOC:416 | void | javax.jms.Message.setShortProperty
(
String
, short
)
throws
JMSException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:417 | void | javax.jms.Message.setIntProperty
(
String
, int
)
| Sets an int property value with the specified name into the message. | true |
| true |
| JMS:JAVADOC:418 | void | javax.jms.Message.setIntProperty
(
String
, int
)
throws
JMSException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:419 | void | javax.jms.Message.setLongProperty
(
String
, long
)
| Sets a long property value with the specified name into the message. | true |
| true |
| JMS:JAVADOC:420 | void | javax.jms.Message.setLongProperty
(
String
, long
)
throws
JMSException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:421 | void | javax.jms.Message.setFloatProperty
(
String
, float
)
| Sets a float property value with the specified name into the message. | true |
| true |
| JMS:JAVADOC:422 | void | javax.jms.Message.setFloatProperty
(
String
, float
)
throws
JMSException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:423 | void | javax.jms.Message.setDoubleProperty
(
String
, double
)
| Sets a double property value with the specified name into the message. | true |
| true |
| JMS:JAVADOC:424 | void | javax.jms.Message.setDoubleProperty
(
String
, double
)
throws
JMSException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:425 | void | javax.jms.Message.setStringProperty
(
String
, String
)
| Sets a String property value with the specified name into the message. | true |
| true |
| JMS:JAVADOC:426 | void | javax.jms.Message.setStringProperty
(
String
, String
)
throws
JMSException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:427 | void | javax.jms.Message.setObjectProperty
(
String
, Object
)
| Sets a Java object property value with the specified name into the message. Note that this method works only for the objectified primitive object types (Integer, Double, Long ...) and String objects. | true |
| true |
| JMS:JAVADOC:428 | void | javax.jms.Message.setObjectProperty
(
String
, Object
)
throws
JMSException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:429 | void | javax.jms.Message.acknowledge
| Acknowledges all consumed messages of the session of this consumed message. All consumed JMS messages support the acknowledge method for use when a client has specified that its JMS session's consumed messages are to be explicitly acknowledged. By invoking acknowledge on a consumed message, a client acknowledges all messages consumed by the session that the message was delivered to. Calls to acknowledge are ignored for both transacted sessions and sessions specified to use implicit acknowledgement modes. A client may individually acknowledge each message as it is consumed, or it may choose to acknowledge messages as an application-defined group (which is done by calling acknowledge on the last received message of the group, thereby acknowledging all messages consumed by the session.) Messages that have been received but not acknowledged may be redelivered. | true |
| true |
| JMS:JAVADOC:430 | void | javax.jms.Message.acknowledge
throws
JMSException
| if the JMS provider fails to acknowledge the messages due to some internal error. | true |
| false |
| JMS:JAVADOC:431 | void | javax.jms.Message.clearBody
| Clears out the message body. Clearing a message's body does not clear its header values or property entries. If this message body was read-only, calling this method leaves the message body in the same state as an empty body in a newly created message. | true |
| true |
| JMS:JAVADOC:432 | void | javax.jms.Message.clearBody
throws
JMSException
| if the JMS provider fails to clear the message body due to some internal error. | true |
| false |
| JMS:JAVADOC:433 | boolean | javax.jms.MapMessage.getBoolean
(
String
)
| Returns the boolean value with the specified name. | true |
| true |
| JMS:JAVADOC:434 | boolean | javax.jms.MapMessage.getBoolean
(
String
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:435 | byte | javax.jms.MapMessage.getByte
(
String
)
| Returns the byte value with the specified name. | true |
| true |
| JMS:JAVADOC:436 | byte | javax.jms.MapMessage.getByte
(
String
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:437 | short | javax.jms.MapMessage.getShort
(
String
)
| Returns the short value with the specified name. | true |
| true |
| JMS:JAVADOC:438 | short | javax.jms.MapMessage.getShort
(
String
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:439 | char | javax.jms.MapMessage.getChar
(
String
)
| Returns the Unicode character value with the specified name. | true |
| true |
| JMS:JAVADOC:440 | char | javax.jms.MapMessage.getChar
(
String
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:441 | int | javax.jms.MapMessage.getInt
(
String
)
| Returns the int value with the specified name. | true |
| true |
| JMS:JAVADOC:442 | int | javax.jms.MapMessage.getInt
(
String
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:443 | long | javax.jms.MapMessage.getLong
(
String
)
| Returns the long value with the specified name. | true |
| true |
| JMS:JAVADOC:444 | long | javax.jms.MapMessage.getLong
(
String
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:445 | float | javax.jms.MapMessage.getFloat
(
String
)
| Returns the float value with the specified name. | true |
| true |
| JMS:JAVADOC:446 | float | javax.jms.MapMessage.getFloat
(
String
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:447 | double | javax.jms.MapMessage.getDouble
(
String
)
| Returns the double value with the specified name. | true |
| true |
| JMS:JAVADOC:448 | double | javax.jms.MapMessage.getDouble
(
String
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:449 | String | javax.jms.MapMessage.getString
(
String
)
| Returns the String value with the specified name. | true |
| true |
| JMS:JAVADOC:450 | String | javax.jms.MapMessage.getString
(
String
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:451 | byte[] | javax.jms.MapMessage.getBytes
(
String
)
| Returns the byte array value with the specified name. | true |
| true |
| JMS:JAVADOC:452 | byte[] | javax.jms.MapMessage.getBytes
(
String
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:453 | Object | javax.jms.MapMessage.getObject
(
String
)
| Returns the value of the object with the specified name. This method can be used to return, in objectified format, an object in the Java programming language ("Java object") that had been stored in the Map with the equivalent setObject method call, or its equivalent primitive settype method. Note that byte values are returned as byte[], not Byte[]. | true |
| true |
| JMS:JAVADOC:454 | Object | javax.jms.MapMessage.getObject
(
String
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:455 | Enumeration | javax.jms.MapMessage.getMapNames
| Returns an Enumeration of all the names in the MapMessage object. | true |
| true |
| JMS:JAVADOC:456 | Enumeration | javax.jms.MapMessage.getMapNames
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:457 | void | javax.jms.MapMessage.setBoolean
(
String
, boolean
)
| Sets a boolean value with the specified name into the Map. | true |
| true |
| JMS:JAVADOC:458 | void | javax.jms.MapMessage.setBoolean
(
String
, boolean
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:459 | void | javax.jms.MapMessage.setByte
(
String
, byte
)
| Sets a byte value with the specified name into the Map. | true |
| true |
| JMS:JAVADOC:460 | void | javax.jms.MapMessage.setByte
(
String
, byte
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:461 | void | javax.jms.MapMessage.setShort
(
String
, short
)
| Sets a short value with the specified name into the Map. | true |
| true |
| JMS:JAVADOC:462 | void | javax.jms.MapMessage.setShort
(
String
, short
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:463 | void | javax.jms.MapMessage.setChar
(
String
, char
)
| Sets a Unicode character value with the specified name into the Map. | true |
| true |
| JMS:JAVADOC:464 | void | javax.jms.MapMessage.setChar
(
String
, char
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:465 | void | javax.jms.MapMessage.setInt
(
String
, int
)
| Sets an int value with the specified name into the Map. | true |
| true |
| JMS:JAVADOC:466 | void | javax.jms.MapMessage.setInt
(
String
, int
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:467 | void | javax.jms.MapMessage.setLong
(
String
, long
)
| Sets a long value with the specified name into the Map. | true |
| true |
| JMS:JAVADOC:468 | void | javax.jms.MapMessage.setLong
(
String
, long
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:469 | void | javax.jms.MapMessage.setFloat
(
String
, float
)
| Sets a float value with the specified name into the Map. | true |
| true |
| JMS:JAVADOC:470 | void | javax.jms.MapMessage.setFloat
(
String
, float
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:471 | void | javax.jms.MapMessage.setDouble
(
String
, double
)
| Sets a double value with the specified name into the Map. | true |
| true |
| JMS:JAVADOC:472 | void | javax.jms.MapMessage.setDouble
(
String
, double
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:473 | void | javax.jms.MapMessage.setString
(
String
, String
)
| Sets a String value with the specified name into the Map. | true |
| true |
| JMS:JAVADOC:474 | void | javax.jms.MapMessage.setString
(
String
, String
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:475 | void | javax.jms.MapMessage.setBytes
(
String
, byte[]
)
| Sets a byte array value with the specified name into the Map. | true |
| true |
| JMS:JAVADOC:476 | void | javax.jms.MapMessage.setBytes
(
String
, byte[]
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:477 | void | javax.jms.MapMessage.setBytes
(
String
, byte[]
, int
, int
)
| Sets a portion of the byte array value with the specified name into the Map. | true |
| true |
| JMS:JAVADOC:478 | void | javax.jms.MapMessage.setBytes
(
String
, byte[]
, int
, int
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:479 | void | javax.jms.MapMessage.setObject
(
String
, Object
)
| Sets an object value with the specified name into the Map. This method works only for the objectified primitive object types (Integer, Double, Long ...), String objects, and byte arrays. | true |
| true |
| JMS:JAVADOC:480 | void | javax.jms.MapMessage.setObject
(
String
, Object
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:481 | boolean | javax.jms.MapMessage.itemExists
(
String
)
| Indicates whether an item exists in this MapMessage object. | true |
| true |
| JMS:JAVADOC:482 | boolean | javax.jms.MapMessage.itemExists
(
String
)
throws
JMSException
| if the JMS provider fails to determine if the item exists due to some internal error. | true |
| false |
| JMS:JAVADOC:483 | void | javax.jms.ExceptionListener.onException
(
JMSException
)
| Notifies user of a JMS exception. | true |
| true |
| JMS:JAVADOC:486 | String | javax.jms.ConnectionMetaData.getJMSVersion
| Gets the JMS API version. | true |
| true |
| JMS:JAVADOC:487 | String | javax.jms.ConnectionMetaData.getJMSVersion
throws
JMSException
| if the JMS provider fails to retrieve the metadata due to some internal error. | true |
| false |
| JMS:JAVADOC:488 | int | javax.jms.ConnectionMetaData.getJMSMajorVersion
| Gets the JMS major version number. | true |
| true |
| JMS:JAVADOC:489 | int | javax.jms.ConnectionMetaData.getJMSMajorVersion
throws
JMSException
| if the JMS provider fails to retrieve the metadata due to some internal error. | true |
| false |
| JMS:JAVADOC:490 | int | javax.jms.ConnectionMetaData.getJMSMinorVersion
| Gets the JMS minor version number. | true |
| true |
| JMS:JAVADOC:491 | int | javax.jms.ConnectionMetaData.getJMSMinorVersion
throws
JMSException
| if the JMS provider fails to retrieve the metadata due to some internal error. | true |
| false |
| JMS:JAVADOC:492 | String | javax.jms.ConnectionMetaData.getJMSProviderName
| Gets the JMS provider name. | true |
| true |
| JMS:JAVADOC:493 | String | javax.jms.ConnectionMetaData.getJMSProviderName
throws
JMSException
| if the JMS provider fails to retrieve the metadata due to some internal error. | true |
| false |
| JMS:JAVADOC:494 | String | javax.jms.ConnectionMetaData.getProviderVersion
| Gets the JMS provider version. | true |
| true |
| JMS:JAVADOC:495 | String | javax.jms.ConnectionMetaData.getProviderVersion
throws
JMSException
| if the JMS provider fails to retrieve the metadata due to some internal error. | true |
| false |
| JMS:JAVADOC:496 | int | javax.jms.ConnectionMetaData.getProviderMajorVersion
| Gets the JMS provider major version number. | true |
| true |
| JMS:JAVADOC:497 | int | javax.jms.ConnectionMetaData.getProviderMajorVersion
throws
JMSException
| if the JMS provider fails to retrieve the metadata due to some internal error. | true |
| false |
| JMS:JAVADOC:498 | int | javax.jms.ConnectionMetaData.getProviderMinorVersion
| Gets the JMS provider minor version number. | true |
| true |
| JMS:JAVADOC:499 | int | javax.jms.ConnectionMetaData.getProviderMinorVersion
throws
JMSException
| if the JMS provider fails to retrieve the metadata due to some internal error. | true |
| false |
| JMS:JAVADOC:500 | Enumeration | javax.jms.ConnectionMetaData.getJMSXPropertyNames
| Gets an enumeration of the JMSX property names. | true |
| true |
| JMS:JAVADOC:501 | Enumeration | javax.jms.ConnectionMetaData.getJMSXPropertyNames
throws
JMSException
| if the JMS provider fails to retrieve the metadata due to some internal error. | true |
| false |
| JMS:JAVADOC:502 | Connection | javax.jms.ConnectionFactory.createConnection
| Creates a connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. | true |
| true |
| JMS:JAVADOC:503 | Connection | javax.jms.ConnectionFactory.createConnection
throws
JMSException
| if the JMS provider fails to create the connection due to some internal error. | true |
| false |
| JMS:JAVADOC:504 | Connection | javax.jms.ConnectionFactory.createConnection
(
String
, String
)
| Creates a connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called. | true |
| true |
| JMS:JAVADOC:505 | Connection | javax.jms.ConnectionFactory.createConnection
(
String
, String
)
throws
JMSException
| if the JMS provider fails to create the connection due to some internal error. | true |
| false |
| JMS:JAVADOC:506 | ServerSessionPool | javax.jms.ConnectionConsumer.getServerSessionPool
| Gets the server session pool associated with this connection consumer. | false |
| true |
| JMS:JAVADOC:507 | ServerSessionPool | javax.jms.ConnectionConsumer.getServerSessionPool
throws
JMSException
| if the JMS provider fails to get the server session pool associated with this consumer due to some internal error. | false |
| false |
| JMS:JAVADOC:508 | void | javax.jms.ConnectionConsumer.close
| Closes the connection consumer. Since a provider may allocate some resources on behalf of a connection consumer outside the Java virtual machine, clients should close these resources when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. | false |
| true |
| JMS:JAVADOC:509 | void | javax.jms.ConnectionConsumer.close
throws
JMSException
| if the JMS provider fails to release resources on behalf of the connection consumer or fails to close the connection consumer. | false |
| false |
| JMS:JAVADOC:510 | Session | javax.jms.Connection.createSession
(
boolean
, int
)
| Creates a Session object, specifying transacted and acknowledgeMode. This method has been superseded by the method createSession(int sessionMode) which specifies the same information using a single argument, and by the method createSession() which is for use in a Java EE JTA transaction. Applications should consider using those methods instead of this one. The effect of setting the transacted and acknowledgeMode arguments depends on whether this method is called in a Java SE environment, in the Java EE application client container, or in the Java EE web or EJB container. If this method is called in the Java EE web or EJB container then the effect of setting the transacted} and acknowledgeMode arguments also depends on whether or not there is an active JTA transaction in progress. In a Java SE environment or in the Java EE application client container: If transacted is set to true then the session will use a local transaction which may subsequently be committed or rolled back by calling the session's commit or rollback methods. The argument acknowledgeMode is ignored. If transacted is set to false then the session will be non-transacted. In this case the argument acknowledgeMode is used to specify how messages received by this session will be acknowledged. The permitted values are Session.CLIENT_ACKNOWLEDGE, Session.AUTO_ACKNOWLEDGE and Session.DUPS_OK_ACKNOWLEDGE. For a definition of the meaning of these acknowledgement modes see the links below. In a Java EE web or EJB container, when there is an active JTA transaction in progress: Both arguments transacted and acknowledgeMode are ignored. The session will participate in the JTA transaction and will be committed or rolled back when that transaction is committed or rolled back, not by calling the session's commit or rollback methods. Since both arguments are ignored, developers are recommended to use createSession(), which has no arguments, instead of this method. In the Java EE web or EJB container, when there is no active JTA transaction in progress: The argument transacted is ignored. The session will always be non-transacted, using one of the two acknowledgement modes AUTO_ACKNOWLEDGE and DUPS_OK_ACKNOWLEDGE. The argument acknowledgeMode is used to specify how messages received by this session will be acknowledged. The only permitted values in this case are Session.AUTO_ACKNOWLEDGE and Session.DUPS_OK_ACKNOWLEDGE. The value Session.CLIENT_ACKNOWLEDGE may not be used. For a definition of the meaning of these acknowledgement modes see the links below. Applications running in the Java EE web and EJB containers must not attempt to create more than one active (not closed) Session object per connection. If this method is called in a Java EE web or EJB container when an active Session object already exists for this connection then a JMSException will be thrown. | true |
| true |
| JMS:JAVADOC:511 | Session | javax.jms.Connection.createSession
(
boolean
, int
)
throws
JMSException
| if the Connection object fails to create a session due to some internal error, lack of support for the specific transaction and acknowledgement mode, or because this method is being called in a Java EE web or EJB application and an active session already exists for this connection. | true |
| false |
| JMS:JAVADOC:512 | String | javax.jms.Connection.getClientID
| Gets the client identifier for this connection. This value is specific to the JMS provider. It is either preconfigured by an administrator in a ConnectionFactory object or assigned dynamically by the application by calling the setClientID method. | true |
| true |
| JMS:JAVADOC:513 | String | javax.jms.Connection.getClientID
throws
JMSException
| if the JMS provider fails to return the client ID for this connection due to some internal error. | true |
| false |
| JMS:JAVADOC:514 | void | javax.jms.Connection.setClientID
(
String
)
| Sets the client identifier for this connection. The preferred way to assign a JMS client's client identifier is for it to be configured in a client-specific ConnectionFactory object and transparently assigned to the Connection object it creates. Alternatively, a client can set a connection's client identifier using a provider-specific value. The facility to set a connection's client identifier explicitly is not a mechanism for overriding the identifier that has been administratively configured. It is provided for the case where no administratively specified identifier exists. If one does exist, an attempt to change it by setting it must throw an IllegalStateException. If a client sets the client identifier explicitly, it must do so immediately after it creates the connection and before any other action on the connection is taken. After this point, setting the client identifier is a programming error that should throw an IllegalStateException. The purpose of the client identifier is to associate a connection and its objects with a state maintained on behalf of the client by a provider. The only such state identified by the JMS API is that required to support durable subscriptions. If another connection with the same clientID is already running when this method is called, the JMS provider should detect the duplicate ID and throw an InvalidClientIDException. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSException to be thrown though this is not guaranteed. | true |
| true |
| JMS:JAVADOC:515 | void | javax.jms.Connection.setClientID
(
String
)
throws
JMSException
| if the JMS provider fails to set the client ID for the the connection for one of the following reasons: an internal error has occurred or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | true |
| false |
| JMS:JAVADOC:516 | ConnectionMetaData | javax.jms.Connection.getMetaData
| Gets the metadata for this connection. | true |
| true |
| JMS:JAVADOC:517 | ConnectionMetaData | javax.jms.Connection.getMetaData
throws
JMSException
| if the JMS provider fails to get the connection metadata for this connection. | true |
| false |
| JMS:JAVADOC:518 | ExceptionListener | javax.jms.Connection.getExceptionListener
| Gets the ExceptionListener object for this connection. Not every Connection has an ExceptionListener associated with it. | true |
| true |
| JMS:JAVADOC:519 | ExceptionListener | javax.jms.Connection.getExceptionListener
throws
JMSException
| if the JMS provider fails to get the ExceptionListener for this connection. | true |
| false |
| JMS:JAVADOC:520 | void | javax.jms.Connection.setExceptionListener
(
ExceptionListener
)
| Sets an exception listener for this connection. If a JMS provider detects a serious problem with a connection, it informs the connection's ExceptionListener, if one has been registered. It does this by calling the listener's onException method, passing it a JMSException object describing the problem. An exception listener allows a client to be notified of a problem asynchronously. Some connections only consume messages, so they would have no other way to learn their connection has failed. A connection serializes execution of its ExceptionListener. A JMS provider should attempt to resolve connection problems itself before it notifies the client of them. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSException to be thrown though this is not guaranteed. | true |
| true |
| JMS:JAVADOC:521 | void | javax.jms.Connection.setExceptionListener
(
ExceptionListener
)
throws
JMSException
| if the JMS provider fails to set the exception listener for one of the following reasons: an internal error has occurred or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | true |
| false |
| JMS:JAVADOC:522 | void | javax.jms.Connection.start
| Starts (or restarts) a connection's delivery of incoming messages. A call to start on a connection that has already been started is ignored. | true |
| true |
| JMS:JAVADOC:523 | void | javax.jms.Connection.start
throws
JMSException
| if the JMS provider fails to start message delivery due to some internal error. | true |
| false |
| JMS:JAVADOC:524 | void | javax.jms.Connection.stop
| Temporarily stops a connection's delivery of incoming messages. Delivery can be restarted using the connection's start method. When the connection is stopped, delivery to all the connection's message consumers is inhibited: synchronous receives block, and messages are not delivered to message listeners. This call blocks until receives and/or message listeners in progress have completed. Stopping a connection has no effect on its ability to send messages. A call to stop on a connection that has already been stopped is ignored. A call to stop must not return until delivery of messages has paused. This means that a client can rely on the fact that none of its message listeners will be called and that all threads of control waiting for receive calls to return will not return with a message until the connection is restarted. The receive timers for a stopped connection continue to advance, so receives may time out while the connection is stopped. If message listeners are running when stop is invoked, the stop call must wait until all of them have returned before it may return. While these message listeners are completing, they must have the full services of the connection available to them. A message listener must not attempt to stop its own connection as this would lead to deadlock. The JMS provider must detect this and throw a IllegalStateException. For the avoidance of doubt, if an exception listener for this connection is running when stop is invoked, there is no requirement for the stop call to wait until the exception listener has returned before it may return. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSException to be thrown though this is not guaranteed. | true |
| true |
| JMS:JAVADOC:525 | void | javax.jms.Connection.stop
throws
JMSException
| if the JMS provider fails to stop message delivery for one of the following reasons: an internal error has occurred or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | true |
| false |
| JMS:JAVADOC:526 | void | javax.jms.Connection.close
| Closes the connection. Since a provider typically allocates significant resources outside the JVM on behalf of a connection, clients should close these resources when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. There is no need to close the sessions, producers, and consumers of a closed connection. Closing a connection causes all temporary destinations to be deleted. When this method is invoked, it should not return until message processing has been shut down in an orderly fashion. This means that all message listeners that may have been running have returned, and that all pending receives have returned. A close terminates all pending message receives on the connection's sessions' consumers. The receives may return with a message or with null, depending on whether there was a message available at the time of the close. If one or more of the connection's sessions' message listeners is processing a message at the time when connection close is invoked, all the facilities of the connection and its sessions must remain available to those listeners until they return control to the JMS provider. This method must not return until any incomplete asynchronous send operations for this Connection have been completed and any CompletionListener callbacks have returned. Incomplete sends should be allowed to complete normally unless an error occurs. For the avoidance of doubt, if an exception listener for this connection is running when close is invoked, there is no requirement for the close call to wait until the exception listener has returned before it may return. Closing a connection causes any of its sessions' transactions in progress to be rolled back. In the case where a session's work is coordinated by an external transaction manager, a session's commit and rollback methods are not used and the result of a closed session's work is determined later by the transaction manager. Closing a connection does NOT force an acknowledgment of client-acknowledged sessions. A message listener must not attempt to close its own connection as this would lead to deadlock. The JMS provider must detect this and throw a IllegalStateException. A CompletionListener callback method must not call close on its own Connection. Doing so will cause an IllegalStateException to be thrown. Invoking the acknowledge method of a received message from a closed connection's session must throw an IllegalStateException. Closing a closed connection must NOT throw an exception. | true |
| true |
| JMS:JAVADOC:527 | void | javax.jms.Connection.close
throws
JMSException
| if the JMS provider fails to close the connection due to some internal error. For example, a failure to release resources or to close a socket connection can cause this exception to be thrown. | true |
| false |
| JMS:JAVADOC:528 | ConnectionConsumer | javax.jms.Connection.createConnectionConsumer
(
Destination
, String
, ServerSessionPool
, int
)
| Creates a connection consumer for this connection (optional operation) on the specific destination. This is an expert facility not used by ordinary JMS clients. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSException to be thrown though this is not guaranteed. | false |
| true |
| JMS:JAVADOC:529 | ConnectionConsumer | javax.jms.Connection.createConnectionConsumer
(
Destination
, String
, ServerSessionPool
, int
)
throws
JMSException
| if the Connection object fails to create a connection consumer for one of the following reasons: an internal error has occurred invalid arguments for sessionPool and messageSelector or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | false |
| false |
| JMS:JAVADOC:530 | ConnectionConsumer | javax.jms.Connection.createDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
| Creates a connection consumer for this connection (optional operation) on the specific topic using an unshared durable subscription with the specified name. This is an expert facility not used by ordinary JMS clients. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSException to be thrown though this is not guaranteed. | false |
| true |
| JMS:JAVADOC:531 | ConnectionConsumer | javax.jms.Connection.createDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
JMSException
| if the Connection object fails to create a connection consumer for one of the following reasons: an internal error has occurred invalid arguments for sessionPool and messageSelector or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | false |
| false |
| JMS:JAVADOC:532 | long | javax.jms.BytesMessage.getBodyLength
| Gets the number of bytes of the message body when the message is in read-only mode. The value returned can be used to allocate a byte array. The value returned is the entire length of the message body, regardless of where the pointer for reading the message is currently located. | true |
| true |
| JMS:JAVADOC:533 | long | javax.jms.BytesMessage.getBodyLength
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:534 | boolean | javax.jms.BytesMessage.readBoolean
| Reads a boolean from the bytes message stream. | true |
| true |
| JMS:JAVADOC:535 | boolean | javax.jms.BytesMessage.readBoolean
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:536 | byte | javax.jms.BytesMessage.readByte
| Reads a signed 8-bit value from the bytes message stream. | true |
| true |
| JMS:JAVADOC:537 | byte | javax.jms.BytesMessage.readByte
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:538 | int | javax.jms.BytesMessage.readUnsignedByte
| Reads an unsigned 8-bit number from the bytes message stream. | true |
| true |
| JMS:JAVADOC:539 | int | javax.jms.BytesMessage.readUnsignedByte
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:540 | short | javax.jms.BytesMessage.readShort
| Reads a signed 16-bit number from the bytes message stream. | true |
| true |
| JMS:JAVADOC:541 | short | javax.jms.BytesMessage.readShort
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:542 | int | javax.jms.BytesMessage.readUnsignedShort
| Reads an unsigned 16-bit number from the bytes message stream. | true |
| true |
| JMS:JAVADOC:543 | int | javax.jms.BytesMessage.readUnsignedShort
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:544 | char | javax.jms.BytesMessage.readChar
| Reads a Unicode character value from the bytes message stream. | true |
| true |
| JMS:JAVADOC:545 | char | javax.jms.BytesMessage.readChar
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:546 | int | javax.jms.BytesMessage.readInt
| Reads a signed 32-bit integer from the bytes message stream. | true |
| true |
| JMS:JAVADOC:547 | int | javax.jms.BytesMessage.readInt
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:548 | long | javax.jms.BytesMessage.readLong
| Reads a signed 64-bit integer from the bytes message stream. | true |
| true |
| JMS:JAVADOC:549 | long | javax.jms.BytesMessage.readLong
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:550 | float | javax.jms.BytesMessage.readFloat
| Reads a float from the bytes message stream. | true |
| true |
| JMS:JAVADOC:551 | float | javax.jms.BytesMessage.readFloat
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:552 | double | javax.jms.BytesMessage.readDouble
| Reads a double from the bytes message stream. | true |
| true |
| JMS:JAVADOC:553 | double | javax.jms.BytesMessage.readDouble
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:554 | String | javax.jms.BytesMessage.readUTF
| Reads a string that has been encoded using a modified UTF-8 format from the bytes message stream. For more information on the UTF-8 format, see "File System Safe UCS Transformation Format (FSS_UTF)", X/Open Preliminary Specification, X/Open Company Ltd., Document Number: P316. This information also appears in ISO/IEC 10646, Annex P. | true |
| true |
| JMS:JAVADOC:555 | String | javax.jms.BytesMessage.readUTF
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:556 | int | javax.jms.BytesMessage.readBytes
(
byte[]
)
| Reads a byte array from the bytes message stream. If the length of array value is less than the number of bytes remaining to be read from the stream, the array should be filled. A subsequent call reads the next increment, and so on. If the number of bytes remaining in the stream is less than the length of array value, the bytes should be read into the array. The return value of the total number of bytes read will be less than the length of the array, indicating that there are no more bytes left to be read from the stream. The next read of the stream returns -1. | true |
| true |
| JMS:JAVADOC:557 | int | javax.jms.BytesMessage.readBytes
(
byte[]
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:558 | int | javax.jms.BytesMessage.readBytes
(
byte[]
, int
)
| Reads a portion of the bytes message stream. If the length of array value is less than the number of bytes remaining to be read from the stream, the array should be filled. A subsequent call reads the next increment, and so on. If the number of bytes remaining in the stream is less than the length of array value, the bytes should be read into the array. The return value of the total number of bytes read will be less than the length of the array, indicating that there are no more bytes left to be read from the stream. The next read of the stream returns -1. If length is negative, or length is greater than the length of the array value, then an IndexOutOfBoundsException is thrown. No bytes will be read from the stream for this exception case. | true |
| true |
| JMS:JAVADOC:559 | int | javax.jms.BytesMessage.readBytes
(
byte[]
, int
)
throws
JMSException
| if the JMS provider fails to read the message due to some internal error. | true |
| false |
| JMS:JAVADOC:560 | void | javax.jms.BytesMessage.writeBoolean
(
boolean
)
| Writes a boolean to the bytes message stream as a 1-byte value. The value true is written as the value (byte)1; the value false is written as the value (byte)0. | true |
| true |
| JMS:JAVADOC:561 | void | javax.jms.BytesMessage.writeBoolean
(
boolean
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:562 | void | javax.jms.BytesMessage.writeByte
(
byte
)
| Writes a byte to the bytes message stream as a 1-byte value. | true |
| true |
| JMS:JAVADOC:563 | void | javax.jms.BytesMessage.writeByte
(
byte
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:564 | void | javax.jms.BytesMessage.writeShort
(
short
)
| Writes a short to the bytes message stream as two bytes, high byte first. | true |
| true |
| JMS:JAVADOC:565 | void | javax.jms.BytesMessage.writeShort
(
short
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:566 | void | javax.jms.BytesMessage.writeChar
(
char
)
| Writes a char to the bytes message stream as a 2-byte value, high byte first. | true |
| true |
| JMS:JAVADOC:567 | void | javax.jms.BytesMessage.writeChar
(
char
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:568 | void | javax.jms.BytesMessage.writeInt
(
int
)
| Writes an int to the bytes message stream as four bytes, high byte first. | true |
| true |
| JMS:JAVADOC:569 | void | javax.jms.BytesMessage.writeInt
(
int
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:570 | void | javax.jms.BytesMessage.writeLong
(
long
)
| Writes a long to the bytes message stream as eight bytes, high byte first. | true |
| true |
| JMS:JAVADOC:571 | void | javax.jms.BytesMessage.writeLong
(
long
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:572 | void | javax.jms.BytesMessage.writeFloat
(
float
)
| Converts the float argument to an int using the floatToIntBits method in class Float, and then writes that int value to the bytes message stream as a 4-byte quantity, high byte first. | true |
| true |
| JMS:JAVADOC:573 | void | javax.jms.BytesMessage.writeFloat
(
float
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:574 | void | javax.jms.BytesMessage.writeDouble
(
double
)
| Converts the double argument to a long using the doubleToLongBits method in class Double, and then writes that long value to the bytes message stream as an 8-byte quantity, high byte first. | true |
| true |
| JMS:JAVADOC:575 | void | javax.jms.BytesMessage.writeDouble
(
double
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:576 | void | javax.jms.BytesMessage.writeUTF
(
String
)
| Writes a string to the bytes message stream using UTF-8 encoding in a machine-independent manner. For more information on the UTF-8 format, see "File System Safe UCS Transformation Format (FSS_UTF)", X/Open Preliminary Specification, X/Open Company Ltd., Document Number: P316. This information also appears in ISO/IEC 10646, Annex P. | true |
| true |
| JMS:JAVADOC:577 | void | javax.jms.BytesMessage.writeUTF
(
String
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:578 | void | javax.jms.BytesMessage.writeBytes
(
byte[]
)
| Writes a byte array to the bytes message stream. | true |
| true |
| JMS:JAVADOC:579 | void | javax.jms.BytesMessage.writeBytes
(
byte[]
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:580 | void | javax.jms.BytesMessage.writeBytes
(
byte[]
, int
, int
)
| Writes a portion of a byte array to the bytes message stream. | true |
| true |
| JMS:JAVADOC:581 | void | javax.jms.BytesMessage.writeBytes
(
byte[]
, int
, int
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:582 | void | javax.jms.BytesMessage.writeObject
(
Object
)
| Writes an object to the bytes message stream. This method works only for the objectified primitive object types (Integer, Double, Long ...), String objects, and byte arrays. | true |
| true |
| JMS:JAVADOC:583 | void | javax.jms.BytesMessage.writeObject
(
Object
)
throws
JMSException
| if the JMS provider fails to write the message due to some internal error. | true |
| false |
| JMS:JAVADOC:584 | void | javax.jms.BytesMessage.reset
| Puts the message body in read-only mode and repositions the stream of bytes to the beginning. | true |
| true |
| JMS:JAVADOC:585 | void | javax.jms.BytesMessage.reset
throws
JMSException
| if the JMS provider fails to reset the message due to some internal error. | true |
| false |
| JMS:JAVADOC:587 | XAQueueConnection | javax.jms.XAQueueConnectionFactory.createXAQueueConnection
throws
JMSSecurityException
| if client authentication fails due to an invalid user name or password. | false |
| true |
| JMS:JAVADOC:588 | XAQueueConnection | javax.jms.XAQueueConnectionFactory.createXAQueueConnection
(
String
, String
)
throws
JMSSecurityException
| if client authentication fails due to an invalid user name or password. | false |
| true |
| JMS:JAVADOC:589 | XATopicConnection | javax.jms.XATopicConnectionFactory.createXATopicConnection
throws
JMSSecurityException
| if client authentication fails due to an invalid user name or password. | false |
| true |
| JMS:JAVADOC:590 | XATopicConnection | javax.jms.XATopicConnectionFactory.createXATopicConnection
(
String
, String
)
throws
JMSSecurityException
| if client authentication fails due to an invalid user name or password. | false |
| true |
| JMS:JAVADOC:591 | TopicConnection | javax.jms.TopicConnectionFactory.createTopicConnection
throws
JMSSecurityException
| if client authentication fails due to an invalid user name or password. | true |
| false |
| JMS:JAVADOC:592 | TopicConnection | javax.jms.TopicConnectionFactory.createTopicConnection
(
String
, String
)
throws
JMSSecurityException
| if client authentication fails due to an invalid user name or password. | true |
| false |
| JMS:JAVADOC:593 | XAConnection | javax.jms.XAConnectionFactory.createXAConnection
throws
JMSSecurityException
| if client authentication fails due to an invalid user name or password. | false |
| true |
| JMS:JAVADOC:594 | XAConnection | javax.jms.XAConnectionFactory.createXAConnection
(
String
, String
)
throws
JMSSecurityException
| if client authentication fails due to an invalid user name or password. | false |
| true |
| JMS:JAVADOC:595 | QueueConnection | javax.jms.QueueConnectionFactory.createQueueConnection
throws
JMSSecurityException
| if client authentication fails due to an invalid user name or password. | true |
| false |
| JMS:JAVADOC:596 | QueueConnection | javax.jms.QueueConnectionFactory.createQueueConnection
(
String
, String
)
throws
JMSSecurityException
| if client authentication fails due to an invalid user name or password. | true |
| false |
| JMS:JAVADOC:597 | void | javax.jms.MessageProducer.send
(
Message
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:598 | void | javax.jms.MessageProducer.send
(
Message
)
throws
InvalidDestinationException
| if a client uses this method with a MessageProducer with an invalid destination. | true |
| false |
| JMS:JAVADOC:599 | void | javax.jms.MessageProducer.send
(
Message
)
throws
UnsupportedOperationException
| if a client uses this method with a MessageProducer that did not specify a destination at creation time. | true |
| true |
| JMS:JAVADOC:600 | void | javax.jms.MessageProducer.send
(
Message
, int
, int
, long
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:601 | void | javax.jms.MessageProducer.send
(
Message
, int
, int
, long
)
throws
InvalidDestinationException
| if a client uses this method with a MessageProducer with an invalid destination. | true |
| false |
| JMS:JAVADOC:602 | void | javax.jms.MessageProducer.send
(
Message
, int
, int
, long
)
throws
UnsupportedOperationException
| if a client uses this method with a MessageProducer that did not specify a destination at creation time. | true |
| true |
| JMS:JAVADOC:603 | void | javax.jms.MessageProducer.send
(
Destination
, Message
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:604 | void | javax.jms.MessageProducer.send
(
Destination
, Message
)
throws
InvalidDestinationException
| if a client uses this method with an invalid destination. | true |
| false |
| JMS:JAVADOC:605 | void | javax.jms.MessageProducer.send
(
Destination
, Message
)
throws
UnsupportedOperationException
| if a client uses this method with a MessageProducer that specified a destination at creation time. | true |
| true |
| JMS:JAVADOC:606 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, int
, int
, long
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:607 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, int
, int
, long
)
throws
InvalidDestinationException
| if a client uses this method with an invalid destination. | true |
| false |
| JMS:JAVADOC:608 | Connection | javax.jms.ConnectionFactory.createConnection
throws
JMSSecurityException
| if client authentication fails due to an invalid user name or password. | true |
| false |
| JMS:JAVADOC:609 | Connection | javax.jms.ConnectionFactory.createConnection
(
String
, String
)
throws
JMSSecurityException
| if client authentication fails due to an invalid user name or password. | true |
| false |
| JMS:JAVADOC:610 | void | javax.jms.XASession.commit
throws
TransactionInProgressException
| if the method is called on an XASession. | false |
| true |
| JMS:JAVADOC:611 | void | javax.jms.XASession.rollback
throws
TransactionInProgressException
| if the method is called on an XASession. | false |
| true |
| JMS:JAVADOC:612 | ConnectionConsumer | javax.jms.TopicConnection.createConnectionConsumer
(
Topic
, String
, ServerSessionPool
, int
)
throws
InvalidDestinationException
| if an invalid topic is specified. | false |
| true |
| JMS:JAVADOC:613 | ConnectionConsumer | javax.jms.TopicConnection.createConnectionConsumer
(
Topic
, String
, ServerSessionPool
, int
)
throws
InvalidSelectorException
| if the message selector is invalid. | false |
| true |
| JMS:JAVADOC:614 | ConnectionConsumer | javax.jms.TopicConnection.createDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
InvalidDestinationException
| if an invalid topic is specified. | false |
| true |
| JMS:JAVADOC:615 | ConnectionConsumer | javax.jms.TopicConnection.createDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
InvalidSelectorException
| if the message selector is invalid. | false |
| true |
| JMS:JAVADOC:616 | ConnectionConsumer | javax.jms.QueueConnection.createConnectionConsumer
(
Queue
, String
, ServerSessionPool
, int
)
throws
InvalidDestinationException
| if an invalid queue is specified. | false |
| true |
| JMS:JAVADOC:617 | ConnectionConsumer | javax.jms.QueueConnection.createConnectionConsumer
(
Queue
, String
, ServerSessionPool
, int
)
throws
InvalidSelectorException
| if the message selector is invalid. | false |
| true |
| JMS:JAVADOC:618 | QueueReceiver | javax.jms.QueueSession.createReceiver
(
Queue
)
throws
InvalidDestinationException
| if an invalid queue is specified. | true |
| true |
| JMS:JAVADOC:619 | QueueReceiver | javax.jms.QueueSession.createReceiver
(
Queue
, String
)
throws
InvalidDestinationException
| if an invalid queue is specified. | true |
| true |
| JMS:JAVADOC:620 | QueueReceiver | javax.jms.QueueSession.createReceiver
(
Queue
, String
)
throws
InvalidSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:621 | QueueSender | javax.jms.QueueSession.createSender
(
Queue
)
throws
InvalidDestinationException
| if an invalid queue is specified. | true |
| true |
| JMS:JAVADOC:622 | QueueBrowser | javax.jms.QueueSession.createBrowser
(
Queue
)
throws
InvalidDestinationException
| if an invalid queue is specified. | true |
| true |
| JMS:JAVADOC:623 | QueueBrowser | javax.jms.QueueSession.createBrowser
(
Queue
, String
)
throws
InvalidDestinationException
| if an invalid queue is specified. | true |
| true |
| JMS:JAVADOC:624 | QueueBrowser | javax.jms.QueueSession.createBrowser
(
Queue
, String
)
throws
InvalidSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:625 | TopicSubscriber | javax.jms.TopicSession.createSubscriber
(
Topic
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:626 | TopicSubscriber | javax.jms.TopicSession.createSubscriber
(
Topic
, String
, boolean
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:627 | TopicSubscriber | javax.jms.TopicSession.createSubscriber
(
Topic
, String
, boolean
)
throws
InvalidSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:628 | TopicSubscriber | javax.jms.TopicSession.createDurableSubscriber
(
Topic
, String
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:629 | TopicSubscriber | javax.jms.TopicSession.createDurableSubscriber
(
Topic
, String
, String
, boolean
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:630 | TopicSubscriber | javax.jms.TopicSession.createDurableSubscriber
(
Topic
, String
, String
, boolean
)
throws
InvalidSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:631 | TopicPublisher | javax.jms.TopicSession.createPublisher
(
Topic
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:632 | void | javax.jms.TopicSession.unsubscribe
(
String
)
throws
InvalidDestinationException
| if an invalid subscription name is specified. | true |
| true |
| JMS:JAVADOC:633 | void | javax.jms.Session.commit
throws
TransactionRolledBackException
| if the transaction is rolled back due to some internal error during commit. | true |
| false |
| JMS:JAVADOC:634 | void | javax.jms.Session.commit
throws
IllegalStateException
| the session is not using a local transaction this method has been called by a CompletionListener callback method on its own Session | true |
| true |
| JMS:JAVADOC:635 | void | javax.jms.Session.rollback
throws
IllegalStateException
| the session is not using a local transaction this method has been called by a CompletionListener callback method on its own Session | true |
| true |
| JMS:JAVADOC:636 | void | javax.jms.Session.recover
throws
IllegalStateException
| if the method is called by a transacted session. | true |
| true |
| JMS:JAVADOC:637 | MessageProducer | javax.jms.Session.createProducer
(
Destination
)
throws
InvalidDestinationException
| if an invalid destination is specified. | true |
| false |
| JMS:JAVADOC:638 | MessageConsumer | javax.jms.Session.createConsumer
(
Destination
)
throws
InvalidDestinationException
| if an invalid destination is specified. | true |
| true |
| JMS:JAVADOC:639 | MessageConsumer | javax.jms.Session.createConsumer
(
Destination
, String
)
throws
InvalidDestinationException
| if an invalid destination is specified. | true |
| true |
| JMS:JAVADOC:640 | MessageConsumer | javax.jms.Session.createConsumer
(
Destination
, String
)
throws
InvalidSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:641 | MessageConsumer | javax.jms.Session.createConsumer
(
Destination
, String
, boolean
)
throws
InvalidDestinationException
| if an invalid destination is specified. | true |
| true |
| JMS:JAVADOC:642 | MessageConsumer | javax.jms.Session.createConsumer
(
Destination
, String
, boolean
)
throws
InvalidSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:643 | TopicSubscriber | javax.jms.Session.createDurableSubscriber
(
Topic
, String
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:644 | TopicSubscriber | javax.jms.Session.createDurableSubscriber
(
Topic
, String
, String
, boolean
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:645 | TopicSubscriber | javax.jms.Session.createDurableSubscriber
(
Topic
, String
, String
, boolean
)
throws
InvalidSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:646 | QueueBrowser | javax.jms.Session.createBrowser
(
Queue
)
throws
InvalidDestinationException
| if an invalid destination is specified | true |
| true |
| JMS:JAVADOC:647 | QueueBrowser | javax.jms.Session.createBrowser
(
Queue
, String
)
throws
InvalidDestinationException
| if an invalid destination is specified | true |
| true |
| JMS:JAVADOC:648 | QueueBrowser | javax.jms.Session.createBrowser
(
Queue
, String
)
throws
InvalidSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:649 | void | javax.jms.Session.unsubscribe
(
String
)
throws
InvalidDestinationException
| if an invalid subscription name is specified. | true |
| true |
| JMS:JAVADOC:650 | void | javax.jms.Connection.setClientID
(
String
)
throws
InvalidClientIDException
| if the JMS client specifies an invalid or duplicate client ID. | true |
| true |
| JMS:JAVADOC:651 | void | javax.jms.Connection.setClientID
(
String
)
throws
IllegalStateException
| if the JMS client attempts to set a connection's client ID at the wrong time or when it has been administratively configured. | true |
| true |
| JMS:JAVADOC:652 | ConnectionConsumer | javax.jms.Connection.createConnectionConsumer
(
Destination
, String
, ServerSessionPool
, int
)
throws
InvalidDestinationException
| if an invalid destination is specified. | false |
| true |
| JMS:JAVADOC:653 | ConnectionConsumer | javax.jms.Connection.createConnectionConsumer
(
Destination
, String
, ServerSessionPool
, int
)
throws
InvalidSelectorException
| if the message selector is invalid. | false |
| true |
| JMS:JAVADOC:654 | ConnectionConsumer | javax.jms.Connection.createDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
InvalidDestinationException
| if an invalid destination is specified. | false |
| true |
| JMS:JAVADOC:655 | ConnectionConsumer | javax.jms.Connection.createDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
InvalidSelectorException
| if the message selector is invalid. | false |
| true |
| JMS:JAVADOC:656 | void | javax.jms.TopicPublisher.publish
(
Message
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:657 | void | javax.jms.TopicPublisher.publish
(
Message
)
throws
InvalidDestinationException
| if a client uses this method with a TopicPublisher with an invalid topic. | true |
| false |
| JMS:JAVADOC:658 | void | javax.jms.TopicPublisher.publish
(
Message
)
throws
UnsupportedOperationException
| if a client uses this method with a TopicPublisher that did not specify a topic at creation time. | true |
| true |
| JMS:JAVADOC:659 | void | javax.jms.TopicPublisher.publish
(
Message
, int
, int
, long
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:660 | void | javax.jms.TopicPublisher.publish
(
Message
, int
, int
, long
)
throws
InvalidDestinationException
| if a client uses this method with a TopicPublisher with an invalid topic. | true |
| false |
| JMS:JAVADOC:661 | void | javax.jms.TopicPublisher.publish
(
Message
, int
, int
, long
)
throws
UnsupportedOperationException
| if a client uses this method with a TopicPublisher that did not specify a topic at creation time. | true |
| true |
| JMS:JAVADOC:662 | void | javax.jms.TopicPublisher.publish
(
Topic
, Message
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:663 | void | javax.jms.TopicPublisher.publish
(
Topic
, Message
)
throws
InvalidDestinationException
| if a client uses this method with an invalid topic. | true |
| false |
| JMS:JAVADOC:664 | void | javax.jms.TopicPublisher.publish
(
Topic
, Message
, int
, int
, long
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:665 | void | javax.jms.TopicPublisher.publish
(
Topic
, Message
, int
, int
, long
)
throws
InvalidDestinationException
| if a client uses this method with an invalid topic. | true |
| false |
| JMS:JAVADOC:666 | void | javax.jms.QueueSender.send
(
Message
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:667 | void | javax.jms.QueueSender.send
(
Message
)
throws
InvalidDestinationException
| if a client uses this method with a QueueSender with an invalid queue. | true |
| false |
| JMS:JAVADOC:668 | void | javax.jms.QueueSender.send
(
Message
)
throws
UnsupportedOperationException
| if a client uses this method with a QueueSender that did not specify a queue at creation time. | true |
| true |
| JMS:JAVADOC:669 | void | javax.jms.QueueSender.send
(
Message
, int
, int
, long
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:670 | void | javax.jms.QueueSender.send
(
Message
, int
, int
, long
)
throws
InvalidDestinationException
| if a client uses this method with a QueueSender with an invalid queue. | true |
| false |
| JMS:JAVADOC:671 | void | javax.jms.QueueSender.send
(
Message
, int
, int
, long
)
throws
UnsupportedOperationException
| if a client uses this method with a QueueSender that did not specify a queue at creation time. | true |
| true |
| JMS:JAVADOC:672 | void | javax.jms.QueueSender.send
(
Queue
, Message
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:673 | void | javax.jms.QueueSender.send
(
Queue
, Message
)
throws
InvalidDestinationException
| if a client uses this method with an invalid queue. | true |
| false |
| JMS:JAVADOC:674 | void | javax.jms.QueueSender.send
(
Queue
, Message
, int
, int
, long
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:675 | void | javax.jms.QueueSender.send
(
Queue
, Message
, int
, int
, long
)
throws
InvalidDestinationException
| if a client uses this method with an invalid queue. | true |
| false |
| JMS:JAVADOC:676 | long | javax.jms.BytesMessage.getBodyLength
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:677 | boolean | javax.jms.BytesMessage.readBoolean
throws
MessageEOFException
| if unexpected end of bytes stream has been reached. | true |
| false |
| JMS:JAVADOC:678 | boolean | javax.jms.BytesMessage.readBoolean
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:679 | byte | javax.jms.BytesMessage.readByte
throws
MessageEOFException
| if unexpected end of bytes stream has been reached. | true |
| true |
| JMS:JAVADOC:680 | byte | javax.jms.BytesMessage.readByte
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:681 | int | javax.jms.BytesMessage.readUnsignedByte
throws
MessageEOFException
| if unexpected end of bytes stream has been reached. | true |
| false |
| JMS:JAVADOC:682 | int | javax.jms.BytesMessage.readUnsignedByte
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:683 | short | javax.jms.BytesMessage.readShort
throws
MessageEOFException
| if unexpected end of bytes stream has been reached. | true |
| false |
| JMS:JAVADOC:684 | short | javax.jms.BytesMessage.readShort
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:685 | int | javax.jms.BytesMessage.readUnsignedShort
throws
MessageEOFException
| if unexpected end of bytes stream has been reached. | true |
| false |
| JMS:JAVADOC:686 | int | javax.jms.BytesMessage.readUnsignedShort
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:687 | char | javax.jms.BytesMessage.readChar
throws
MessageEOFException
| if unexpected end of bytes stream has been reached. | true |
| false |
| JMS:JAVADOC:688 | char | javax.jms.BytesMessage.readChar
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:689 | int | javax.jms.BytesMessage.readInt
throws
MessageEOFException
| if unexpected end of bytes stream has been reached. | true |
| false |
| JMS:JAVADOC:690 | int | javax.jms.BytesMessage.readInt
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:691 | long | javax.jms.BytesMessage.readLong
throws
MessageEOFException
| if unexpected end of bytes stream has been reached. | true |
| false |
| JMS:JAVADOC:692 | long | javax.jms.BytesMessage.readLong
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:693 | float | javax.jms.BytesMessage.readFloat
throws
MessageEOFException
| if unexpected end of bytes stream has been reached. | true |
| false |
| JMS:JAVADOC:694 | float | javax.jms.BytesMessage.readFloat
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:695 | double | javax.jms.BytesMessage.readDouble
throws
MessageEOFException
| if unexpected end of bytes stream has been reached. | true |
| false |
| JMS:JAVADOC:696 | double | javax.jms.BytesMessage.readDouble
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:697 | String | javax.jms.BytesMessage.readUTF
throws
MessageEOFException
| if unexpected end of bytes stream has been reached. | true |
| false |
| JMS:JAVADOC:698 | String | javax.jms.BytesMessage.readUTF
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:699 | int | javax.jms.BytesMessage.readBytes
(
byte[]
)
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:700 | int | javax.jms.BytesMessage.readBytes
(
byte[]
, int
)
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:701 | void | javax.jms.BytesMessage.writeBoolean
(
boolean
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:702 | void | javax.jms.BytesMessage.writeByte
(
byte
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:703 | void | javax.jms.BytesMessage.writeShort
(
short
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:704 | void | javax.jms.BytesMessage.writeChar
(
char
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:705 | void | javax.jms.BytesMessage.writeInt
(
int
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:706 | void | javax.jms.BytesMessage.writeLong
(
long
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:707 | void | javax.jms.BytesMessage.writeFloat
(
float
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:708 | void | javax.jms.BytesMessage.writeDouble
(
double
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:709 | void | javax.jms.BytesMessage.writeUTF
(
String
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:710 | void | javax.jms.BytesMessage.writeBytes
(
byte[]
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:711 | void | javax.jms.BytesMessage.writeBytes
(
byte[]
, int
, int
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:712 | void | javax.jms.BytesMessage.writeObject
(
Object
)
throws
MessageFormatException
| if the object is of an invalid type. | true |
| false |
| JMS:JAVADOC:713 | void | javax.jms.BytesMessage.writeObject
(
Object
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:714 | void | javax.jms.BytesMessage.writeObject
(
Object
)
throws
NullPointerException
| if the parameter value is null. | true |
| true |
| JMS:JAVADOC:715 | void | javax.jms.BytesMessage.reset
throws
MessageFormatException
| if the message has an invalid format. | true |
| false |
| JMS:JAVADOC:716 | void | javax.jms.ObjectMessage.setObject
(
Serializable
)
throws
MessageFormatException
| if object serialization fails. | true |
| false |
| JMS:JAVADOC:717 | void | javax.jms.ObjectMessage.setObject
(
Serializable
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:718 | Serializable | javax.jms.ObjectMessage.getObject
throws
MessageFormatException
| if object deserialization fails. | true |
| false |
| JMS:JAVADOC:719 | boolean | javax.jms.StreamMessage.readBoolean
throws
MessageEOFException
| if unexpected end of message stream has been reached. | true |
| false |
| JMS:JAVADOC:720 | boolean | javax.jms.StreamMessage.readBoolean
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:721 | boolean | javax.jms.StreamMessage.readBoolean
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:722 | byte | javax.jms.StreamMessage.readByte
throws
MessageEOFException
| if unexpected end of message stream has been reached. | true |
| true |
| JMS:JAVADOC:723 | byte | javax.jms.StreamMessage.readByte
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:724 | byte | javax.jms.StreamMessage.readByte
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:725 | short | javax.jms.StreamMessage.readShort
throws
MessageEOFException
| if unexpected end of message stream has been reached. | true |
| false |
| JMS:JAVADOC:726 | short | javax.jms.StreamMessage.readShort
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:727 | short | javax.jms.StreamMessage.readShort
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:728 | char | javax.jms.StreamMessage.readChar
throws
MessageEOFException
| if unexpected end of message stream has been reached. | true |
| false |
| JMS:JAVADOC:729 | char | javax.jms.StreamMessage.readChar
throws
MessageFormatException
| if this type conversion is invalid | true |
| true |
| JMS:JAVADOC:730 | char | javax.jms.StreamMessage.readChar
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:731 | int | javax.jms.StreamMessage.readInt
throws
MessageEOFException
| if unexpected end of message stream has been reached. | true |
| false |
| JMS:JAVADOC:732 | int | javax.jms.StreamMessage.readInt
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:733 | int | javax.jms.StreamMessage.readInt
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:734 | long | javax.jms.StreamMessage.readLong
throws
MessageEOFException
| if unexpected end of message stream has been reached. | true |
| false |
| JMS:JAVADOC:735 | long | javax.jms.StreamMessage.readLong
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:736 | long | javax.jms.StreamMessage.readLong
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:737 | float | javax.jms.StreamMessage.readFloat
throws
MessageEOFException
| if unexpected end of message stream has been reached. | true |
| false |
| JMS:JAVADOC:738 | float | javax.jms.StreamMessage.readFloat
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:739 | float | javax.jms.StreamMessage.readFloat
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:740 | double | javax.jms.StreamMessage.readDouble
throws
MessageEOFException
| if unexpected end of message stream has been reached. | true |
| false |
| JMS:JAVADOC:741 | double | javax.jms.StreamMessage.readDouble
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:742 | double | javax.jms.StreamMessage.readDouble
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:743 | String | javax.jms.StreamMessage.readString
throws
MessageEOFException
| if unexpected end of message stream has been reached. | true |
| false |
| JMS:JAVADOC:744 | String | javax.jms.StreamMessage.readString
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:745 | String | javax.jms.StreamMessage.readString
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:746 | int | javax.jms.StreamMessage.readBytes
(
byte[]
)
throws
MessageEOFException
| if unexpected end of message stream has been reached. | true |
| false |
| JMS:JAVADOC:747 | int | javax.jms.StreamMessage.readBytes
(
byte[]
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:748 | int | javax.jms.StreamMessage.readBytes
(
byte[]
)
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:749 | Object | javax.jms.StreamMessage.readObject
throws
MessageEOFException
| if unexpected end of message stream has been reached. | true |
| false |
| JMS:JAVADOC:750 | Object | javax.jms.StreamMessage.readObject
throws
MessageFormatException
| if this type conversion is invalid. | true |
| false |
| JMS:JAVADOC:751 | Object | javax.jms.StreamMessage.readObject
throws
MessageNotReadableException
| if the message is in write-only mode. | true |
| true |
| JMS:JAVADOC:752 | void | javax.jms.StreamMessage.writeBoolean
(
boolean
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:753 | void | javax.jms.StreamMessage.writeByte
(
byte
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:754 | void | javax.jms.StreamMessage.writeShort
(
short
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:755 | void | javax.jms.StreamMessage.writeChar
(
char
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:756 | void | javax.jms.StreamMessage.writeInt
(
int
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:757 | void | javax.jms.StreamMessage.writeLong
(
long
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:758 | void | javax.jms.StreamMessage.writeFloat
(
float
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:759 | void | javax.jms.StreamMessage.writeDouble
(
double
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:760 | void | javax.jms.StreamMessage.writeString
(
String
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:761 | void | javax.jms.StreamMessage.writeBytes
(
byte[]
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:762 | void | javax.jms.StreamMessage.writeBytes
(
byte[]
, int
, int
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:763 | void | javax.jms.StreamMessage.writeObject
(
Object
)
throws
MessageFormatException
| if the object is invalid. | true |
| false |
| JMS:JAVADOC:764 | void | javax.jms.StreamMessage.writeObject
(
Object
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:765 | void | javax.jms.StreamMessage.reset
throws
MessageFormatException
| if the message has an invalid format. | true |
| false |
| JMS:JAVADOC:766 | void | javax.jms.TextMessage.setText
(
String
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:767 | boolean | javax.jms.Message.getBooleanProperty
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:768 | byte | javax.jms.Message.getByteProperty
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:769 | short | javax.jms.Message.getShortProperty
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:770 | int | javax.jms.Message.getIntProperty
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:771 | long | javax.jms.Message.getLongProperty
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:772 | float | javax.jms.Message.getFloatProperty
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:773 | double | javax.jms.Message.getDoubleProperty
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:774 | String | javax.jms.Message.getStringProperty
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:775 | void | javax.jms.Message.setBooleanProperty
(
String
, boolean
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:776 | void | javax.jms.Message.setBooleanProperty
(
String
, boolean
)
throws
MessageNotWriteableException
| if properties are read-only | true |
| true |
| JMS:JAVADOC:777 | void | javax.jms.Message.setByteProperty
(
String
, byte
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:778 | void | javax.jms.Message.setByteProperty
(
String
, byte
)
throws
MessageNotWriteableException
| if properties are read-only | true |
| true |
| JMS:JAVADOC:779 | void | javax.jms.Message.setShortProperty
(
String
, short
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:780 | void | javax.jms.Message.setShortProperty
(
String
, short
)
throws
MessageNotWriteableException
| if properties are read-only | true |
| true |
| JMS:JAVADOC:781 | void | javax.jms.Message.setIntProperty
(
String
, int
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:782 | void | javax.jms.Message.setIntProperty
(
String
, int
)
throws
MessageNotWriteableException
| if properties are read-only | true |
| true |
| JMS:JAVADOC:783 | void | javax.jms.Message.setLongProperty
(
String
, long
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:784 | void | javax.jms.Message.setLongProperty
(
String
, long
)
throws
MessageNotWriteableException
| if properties are read-only | true |
| true |
| JMS:JAVADOC:785 | void | javax.jms.Message.setFloatProperty
(
String
, float
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:786 | void | javax.jms.Message.setFloatProperty
(
String
, float
)
throws
MessageNotWriteableException
| if properties are read-only | true |
| true |
| JMS:JAVADOC:787 | void | javax.jms.Message.setDoubleProperty
(
String
, double
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:788 | void | javax.jms.Message.setDoubleProperty
(
String
, double
)
throws
MessageNotWriteableException
| if properties are read-only | true |
| true |
| JMS:JAVADOC:789 | void | javax.jms.Message.setStringProperty
(
String
, String
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:790 | void | javax.jms.Message.setStringProperty
(
String
, String
)
throws
MessageNotWriteableException
| if properties are read-only | true |
| true |
| JMS:JAVADOC:791 | void | javax.jms.Message.setObjectProperty
(
String
, Object
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:792 | void | javax.jms.Message.setObjectProperty
(
String
, Object
)
throws
MessageFormatException
| if the object is invalid | true |
| true |
| JMS:JAVADOC:793 | void | javax.jms.Message.setObjectProperty
(
String
, Object
)
throws
MessageNotWriteableException
| if properties are read-only | true |
| true |
| JMS:JAVADOC:794 | void | javax.jms.Message.acknowledge
throws
IllegalStateException
| if this method is called on a closed session. | true |
| true |
| JMS:JAVADOC:795 | boolean | javax.jms.MapMessage.getBoolean
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:796 | byte | javax.jms.MapMessage.getByte
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:797 | short | javax.jms.MapMessage.getShort
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:798 | char | javax.jms.MapMessage.getChar
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:799 | int | javax.jms.MapMessage.getInt
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:800 | long | javax.jms.MapMessage.getLong
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:801 | float | javax.jms.MapMessage.getFloat
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:802 | double | javax.jms.MapMessage.getDouble
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:803 | String | javax.jms.MapMessage.getString
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:804 | byte[] | javax.jms.MapMessage.getBytes
(
String
)
throws
MessageFormatException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:805 | void | javax.jms.MapMessage.setBoolean
(
String
, boolean
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:806 | void | javax.jms.MapMessage.setBoolean
(
String
, boolean
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:807 | void | javax.jms.MapMessage.setByte
(
String
, byte
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:808 | void | javax.jms.MapMessage.setByte
(
String
, byte
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:809 | void | javax.jms.MapMessage.setShort
(
String
, short
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:810 | void | javax.jms.MapMessage.setShort
(
String
, short
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:811 | void | javax.jms.MapMessage.setChar
(
String
, char
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:812 | void | javax.jms.MapMessage.setChar
(
String
, char
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:813 | void | javax.jms.MapMessage.setInt
(
String
, int
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:814 | void | javax.jms.MapMessage.setInt
(
String
, int
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:815 | void | javax.jms.MapMessage.setLong
(
String
, long
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:816 | void | javax.jms.MapMessage.setLong
(
String
, long
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:817 | void | javax.jms.MapMessage.setFloat
(
String
, float
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:818 | void | javax.jms.MapMessage.setFloat
(
String
, float
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:819 | void | javax.jms.MapMessage.setDouble
(
String
, double
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:820 | void | javax.jms.MapMessage.setDouble
(
String
, double
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:821 | void | javax.jms.MapMessage.setString
(
String
, String
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:822 | void | javax.jms.MapMessage.setString
(
String
, String
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:823 | void | javax.jms.MapMessage.setBytes
(
String
, byte[]
)
throws
IllegalArgumentException
| if the name is null, or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:824 | void | javax.jms.MapMessage.setBytes
(
String
, byte[]
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:825 | void | javax.jms.MapMessage.setBytes
(
String
, byte[]
, int
, int
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:826 | void | javax.jms.MapMessage.setBytes
(
String
, byte[]
, int
, int
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:827 | void | javax.jms.MapMessage.setObject
(
String
, Object
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:828 | void | javax.jms.MapMessage.setObject
(
String
, Object
)
throws
MessageFormatException
| if the object is invalid. | true |
| false |
| JMS:JAVADOC:829 | void | javax.jms.MapMessage.setObject
(
String
, Object
)
throws
MessageNotWriteableException
| if the message is in read-only mode. | true |
| true |
| JMS:JAVADOC:830 | TopicRequestor | javax.jms.TopicRequestor.TopicRequestor
(
TopicSession
, Topic
)
throws
JMSException
| if the JMS provider fails to create the TopicRequestor due to some internal error. | true |
| false |
| JMS:JAVADOC:831 | TopicRequestor | javax.jms.TopicRequestor.TopicRequestor
(
TopicSession
, Topic
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:832 | QueueRequestor | javax.jms.QueueRequestor.QueueRequestor
(
QueueSession
, Queue
)
throws
JMSException
| if the JMS provider fails to create the QueueRequestor due to some internal error. | true |
| false |
| JMS:JAVADOC:833 | QueueRequestor | javax.jms.QueueRequestor.QueueRequestor
(
QueueSession
, Queue
)
throws
InvalidDestinationException
| if an invalid queue is specified. | true |
| true |
| JMS:JAVADOC:835 | void | javax.jms.CompletionListener.onCompletion
(
Message
)
| Notifies the application that the message has been successfully sent | true |
| true |
| JMS:JAVADOC:836 | void | javax.jms.CompletionListener.onException
(
Message
, Exception
)
| Notifies user that the specified exception was thrown while attempting to send the specified message. If an exception occurs it is undefined whether or not the message was successfully sent. | true |
| false |
| JMS:JAVADOC:837 | Session | javax.jms.Connection.createSession
(
int
)
| Creates a Session object, specifying sessionMode. The effect of setting the sessionMode argument depends on whether this method is called in a Java SE environment, in the Java EE application client container, or in the Java EE web or EJB container. If this method is called in the Java EE web or EJB container then the effect of setting the sessionMode argument also depends on whether or not there is an active JTA transaction in progress. In a Java SE environment or in the Java EE application client container: If sessionMode is set to Session.SESSION_TRANSACTED then the session will use a local transaction which may subsequently be committed or rolled back by calling the session's commit or rollback methods. If sessionMode is set to any of Session.CLIENT_ACKNOWLEDGE, Session.AUTO_ACKNOWLEDGE or Session.DUPS_OK_ACKNOWLEDGE. then the session will be non-transacted and messages received by this session will be acknowledged according to the value of sessionMode. For a definition of the meaning of these acknowledgement modes see the links below. In a Java EE web or EJB container, when there is an active JTA transaction in progress: The argument sessionMode is ignored. The session will participate in the JTA transaction and will be committed or rolled back when that transaction is committed or rolled back, not by calling the session's commit or rollback methods. Since the argument is ignored, developers are recommended to use createSession(), which has no arguments, instead of this method. In the Java EE web or EJB container, when there is no active JTA transaction in progress: The argument acknowledgeMode must be set to either of Session.AUTO_ACKNOWLEDGE or Session.DUPS_OK_ACKNOWLEDGE. The session will be non-transacted and messages received by this session will be acknowledged automatically according to the value of acknowledgeMode. For a definition of the meaning of these acknowledgement modes see the links below. The values Session.SESSION_TRANSACTED and Session.CLIENT_ACKNOWLEDGE may not be used. Applications running in the Java EE web and EJB containers must not attempt to create more than one active (not closed) Session object per connection. If this method is called in a Java EE web or EJB container when an active Session object already exists for this connection then a JMSException will be thrown. | true |
| true |
| JMS:JAVADOC:838 | Session | javax.jms.Connection.createSession
(
int
)
throws
JMSException
| if the Connection object fails to create a session due to some internal error, lack of support for the specific transaction and acknowledgement mode, or because this method is being called in a Java EE web or EJB application and an active session already exists for this connection. | true |
| true |
| JMS:JAVADOC:839 | Session | javax.jms.Connection.createSession
| Creates a Session object, specifying no arguments. The behaviour of the session that is created depends on whether this method is called in a Java SE environment, in the Java EE application client container, or in the Java EE web or EJB container. If this method is called in the Java EE web or EJB container then the behaviour of the session also depends on whether or not there is an active JTA transaction in progress. In a Java SE environment or in the Java EE application client container: The session will be non-transacted and received messages will be acknowledged automatically using an acknowledgement mode of Session.AUTO_ACKNOWLEDGE For a definition of the meaning of this acknowledgement mode see the link below. In a Java EE web or EJB container, when there is an active JTA transaction in progress: The session will participate in the JTA transaction and will be committed or rolled back when that transaction is committed or rolled back, not by calling the session's commit or rollback methods. In the Java EE web or EJB container, when there is no active JTA transaction in progress: The session will be non-transacted and received messages will be acknowledged automatically using an acknowledgement mode of Session.AUTO_ACKNOWLEDGE For a definition of the meaning of this acknowledgement mode see the link below. Applications running in the Java EE web and EJB containers must not attempt to create more than one active (not closed) Session object per connection. If this method is called in a Java EE web or EJB container when an active Session object already exists for this connection then a JMSException will be thrown. | true |
| true |
| JMS:JAVADOC:840 | Session | javax.jms.Connection.createSession
throws
JMSException
| if the Connection object fails to create a session due to some internal error or because this method is being called in a Java EE web or EJB application and an active session already exists for this connection. | true |
| true |
| JMS:JAVADOC:841 | JMSContext | javax.jms.ConnectionFactory.createContext
| Creates a JMSContext with the default user identity and an unspecified sessionMode. A connection and session are created for use by the new JMSContext. The connection is created in stopped mode but will be automatically started when a JMSConsumer is created. The behaviour of the session that is created depends on whether this method is called in a Java SE environment, in the Java EE application client container, or in the Java EE web or EJB container. If this method is called in the Java EE web or EJB container then the behaviour of the session also depends on whether or not there is an active JTA transaction in progress. In a Java SE environment or in the Java EE application client container: The session will be non-transacted and received messages will be acknowledged automatically using an acknowledgement mode of JMSContext.AUTO_ACKNOWLEDGE For a definition of the meaning of this acknowledgement mode see the link below. In a Java EE web or EJB container, when there is an active JTA transaction in progress: The session will participate in the JTA transaction and will be committed or rolled back when that transaction is committed or rolled back, not by calling the JMSContext's commit or rollback methods. In the Java EE web or EJB container, when there is no active JTA transaction in progress: The session will be non-transacted and received messages will be acknowledged automatically using an acknowledgement mode of JMSContext.AUTO_ACKNOWLEDGE For a definition of the meaning of this acknowledgement mode see the link below. | true |
| true |
| JMS:JAVADOC:842 | JMSContext | javax.jms.ConnectionFactory.createContext
throws
JMSRuntimeException
| if the JMS provider fails to create the JMSContext due to some internal error. | true |
| true |
| JMS:JAVADOC:843 | JMSContext | javax.jms.ConnectionFactory.createContext
throws
JMSSecurityRuntimeException
| if client authentication fails due to an invalid user name or password. | true |
| true |
| JMS:JAVADOC:844 | JMSContext | javax.jms.ConnectionFactory.createContext
(
String
, String
)
| Creates a JMSContext with the specified user identity and an unspecified sessionMode. A connection and session are created for use by the new JMSContext. The connection is created in stopped mode but will be automatically started when a JMSConsumer. The behaviour of the session that is created depends on whether this method is called in a Java SE environment, in the Java EE application client container, or in the Java EE web or EJB container. If this method is called in the Java EE web or EJB container then the behaviour of the session also depends on whether or not there is an active JTA transaction in progress. In a Java SE environment or in the Java EE application client container: The session will be non-transacted and received messages will be acknowledged automatically using an acknowledgement mode of JMSContext.AUTO_ACKNOWLEDGE For a definition of the meaning of this acknowledgement mode see the link below. In a Java EE web or EJB container, when there is an active JTA transaction in progress: The session will participate in the JTA transaction and will be committed or rolled back when that transaction is committed or rolled back, not by calling the JMSContext's commit or rollback methods. In the Java EE web or EJB container, when there is no active JTA transaction in progress: The session will be non-transacted and received messages will be acknowledged automatically using an acknowledgement mode of JMSContext.AUTO_ACKNOWLEDGE For a definition of the meaning of this acknowledgement mode see the link below. | true |
| true |
| JMS:JAVADOC:845 | JMSContext | javax.jms.ConnectionFactory.createContext
(
String
, String
)
throws
JMSRuntimeException
| if the JMS provider fails to create the JMSContext due to some internal error. | true |
| true |
| JMS:JAVADOC:846 | JMSContext | javax.jms.ConnectionFactory.createContext
(
String
, String
)
throws
JMSSecurityRuntimeException
| if client authentication fails due to an invalid user name or password. | true |
| true |
| JMS:JAVADOC:847 | JMSContext | javax.jms.ConnectionFactory.createContext
(
String
, String
, int
)
| Creates a JMSContext with the specified user identity and the specified session mode. A connection and session are created for use by the new JMSContext. The JMSContext is created in stopped mode but will be automatically started when a JMSConsumer is created. The effect of setting the sessionMode argument depends on whether this method is called in a Java SE environment, in the Java EE application client container, or in the Java EE web or EJB container. If this method is called in the Java EE web or EJB container then the effect of setting the sessionMode argument also depends on whether or not there is an active JTA transaction in progress. In a Java SE environment or in the Java EE application client container: If sessionMode is set to JMSContext.SESSION_TRANSACTED then the session will use a local transaction which may subsequently be committed or rolled back by calling the JMSContext's commit or rollback methods. If sessionMode is set to any of JMSContext.CLIENT_ACKNOWLEDGE, JMSContext.AUTO_ACKNOWLEDGE or JMSContext.DUPS_OK_ACKNOWLEDGE. then the session will be non-transacted and messages received by this session will be acknowledged according to the value of sessionMode. For a definition of the meaning of these acknowledgement modes see the links below. In a Java EE web or EJB container, when there is an active JTA transaction in progress: The argument sessionMode is ignored. The session will participate in the JTA transaction and will be committed or rolled back when that transaction is committed or rolled back, not by calling the JMSContext's commit or rollback methods. Since the argument is ignored, developers are recommended to use createSession(), which has no arguments, instead of this method. In the Java EE web or EJB container, when there is no active JTA transaction in progress: The argument acknowledgeMode must be set to either of JMSContext.AUTO_ACKNOWLEDGE or JMSContext.DUPS_OK_ACKNOWLEDGE. The session will be non-transacted and messages received by this session will be acknowledged automatically according to the value of acknowledgeMode. For a definition of the meaning of these acknowledgement modes see the links below. The values JMSContext.SESSION_TRANSACTED and JMSContext.CLIENT_ACKNOWLEDGE may not be used. | true |
| true |
| JMS:JAVADOC:848 | JMSContext | javax.jms.ConnectionFactory.createContext
(
String
, String
, int
)
throws
JMSRuntimeException
| if the JMS provider fails to create the JMSContext due to some internal error. | true |
| false |
| JMS:JAVADOC:849 | JMSContext | javax.jms.ConnectionFactory.createContext
(
String
, String
, int
)
throws
JMSSecurityRuntimeException
| if client authentication fails due to an invalid user name or password. | true |
| true |
| JMS:JAVADOC:850 | JMSContext | javax.jms.ConnectionFactory.createContext
(
int
)
| Creates a JMSContext with the default user identity and the specified session mode. A connection and session are created for use by the new JMSContext. The JMSContext is created in stopped mode but will be automatically started when a JMSConsumer is created. The effect of setting the sessionMode argument depends on whether this method is called in a Java SE environment, in the Java EE application client container, or in the Java EE web or EJB container. If this method is called in the Java EE web or EJB container then the effect of setting the sessionMode argument also depends on whether or not there is an active JTA transaction in progress. In a Java SE environment or in the Java EE application client container: If sessionMode is set to JMSContext.SESSION_TRANSACTED then the session will use a local transaction which may subsequently be committed or rolled back by calling the JMSContext's commit or rollback methods. If sessionMode is set to any of JMSContext.CLIENT_ACKNOWLEDGE, JMSContext.AUTO_ACKNOWLEDGE or JMSContext.DUPS_OK_ACKNOWLEDGE. then the session will be non-transacted and messages received by this session will be acknowledged according to the value of sessionMode. For a definition of the meaning of these acknowledgement modes see the links below. In a Java EE web or EJB container, when there is an active JTA transaction in progress: The argument sessionMode is ignored. The session will participate in the JTA transaction and will be committed or rolled back when that transaction is committed or rolled back, not by calling the JMSContext's commit or rollback methods. Since the argument is ignored, developers are recommended to use createSession(), which has no arguments, instead of this method. In the Java EE web or EJB container, when there is no active JTA transaction in progress: The argument acknowledgeMode must be set to either of JMSContext.AUTO_ACKNOWLEDGE or JMSContext.DUPS_OK_ACKNOWLEDGE. The session will be non-transacted and messages received by this session will be acknowledged automatically according to the value of acknowledgeMode. For a definition of the meaning of these acknowledgement modes see the links below. The values JMSContext.SESSION_TRANSACTED and JMSContext.CLIENT_ACKNOWLEDGE may not be used. | true |
| true |
| JMS:JAVADOC:851 | JMSContext | javax.jms.ConnectionFactory.createContext
(
int
)
throws
JMSRuntimeException
| if the JMS provider fails to create the JMSContext due to some internal error. | true |
| false |
| JMS:JAVADOC:852 | JMSContext | javax.jms.ConnectionFactory.createContext
(
int
)
throws
JMSSecurityRuntimeException
| if client authentication fails due to an invalid user name or password. | true |
| false |
| JMS:JAVADOC:853 | IllegalStateRuntimeException | javax.jms.IllegalStateRuntimeException.IllegalStateRuntimeException
(
String
, String
)
| Constructs a IllegalStateRuntimeException with the specified detail message and error code. | true |
| true |
| JMS:JAVADOC:854 | IllegalStateRuntimeException | javax.jms.IllegalStateRuntimeException.IllegalStateRuntimeException
(
String
)
| Constructs a IllegalStateRuntimeException with the specified detail message | true |
| true |
| JMS:JAVADOC:855 | IllegalStateRuntimeException | javax.jms.IllegalStateRuntimeException.IllegalStateRuntimeException
(
String
, String
, Throwable
)
| Constructs a IllegalStateRuntimeException with the specified detail message, error code and cause | true |
| true |
| JMS:JAVADOC:856 | InvalidClientIDRuntimeException | javax.jms.InvalidClientIDRuntimeException.InvalidClientIDRuntimeException
(
String
, String
)
| Constructs a InvalidClientIDRuntimeException with the specified detail message and error code. | true |
| true |
| JMS:JAVADOC:857 | InvalidClientIDRuntimeException | javax.jms.InvalidClientIDRuntimeException.InvalidClientIDRuntimeException
(
String
)
| Constructs a InvalidClientIDRuntimeException with the specified detail message | true |
| true |
| JMS:JAVADOC:858 | InvalidClientIDRuntimeException | javax.jms.InvalidClientIDRuntimeException.InvalidClientIDRuntimeException
(
String
, String
, Throwable
)
| Constructs a InvalidClientIDRuntimeException with the specified detail message, error code and cause | true |
| true |
| JMS:JAVADOC:859 | InvalidDestinationRuntimeException | javax.jms.InvalidDestinationRuntimeException.InvalidDestinationRuntimeException
(
String
, String
)
| Constructs a InvalidDestinationRuntimeException with the specified detail message and error code. | true |
| true |
| JMS:JAVADOC:860 | InvalidDestinationRuntimeException | javax.jms.InvalidDestinationRuntimeException.InvalidDestinationRuntimeException
(
String
)
| Constructs a InvalidDestinationRuntimeException with the specified detail message | true |
| true |
| JMS:JAVADOC:861 | InvalidDestinationRuntimeException | javax.jms.InvalidDestinationRuntimeException.InvalidDestinationRuntimeException
(
String
, String
, Throwable
)
| Constructs a InvalidDestinationRuntimeException with the specified detail message, error code and cause | true |
| true |
| JMS:JAVADOC:862 | InvalidSelectorRuntimeException | javax.jms.InvalidSelectorRuntimeException.InvalidSelectorRuntimeException
(
String
, String
)
| Constructs a InvalidSelectorRuntimeException with the specified detail message and error code. | true |
| true |
| JMS:JAVADOC:863 | InvalidSelectorRuntimeException | javax.jms.InvalidSelectorRuntimeException.InvalidSelectorRuntimeException
(
String
)
| Constructs a InvalidSelectorRuntimeException with the specified detail message | true |
| true |
| JMS:JAVADOC:864 | InvalidSelectorRuntimeException | javax.jms.InvalidSelectorRuntimeException.InvalidSelectorRuntimeException
(
String
, String
, Throwable
)
| Constructs a InvalidSelectorRuntimeException with the specified detail message, error code and cause | true |
| true |
| JMS:JAVADOC:865 | String | javax.jms.JMSRuntimeException.getErrorCode
| Returns the vendor-specific error code. | true |
| true |
| JMS:JAVADOC:867 | JMSRuntimeException | javax.jms.JMSRuntimeException.JMSRuntimeException
(
String
, String
)
| Constructs a JMSRuntimeException with the specified detail message and error code. | true |
| true |
| JMS:JAVADOC:868 | JMSRuntimeException | javax.jms.JMSRuntimeException.JMSRuntimeException
(
String
)
| Constructs a JMSRuntimeException with the specified detail message | true |
| true |
| JMS:JAVADOC:869 | JMSRuntimeException | javax.jms.JMSRuntimeException.JMSRuntimeException
(
String
, String
, Throwable
)
| Constructs a JMSRuntimeException with the specified detail message, error code and cause | true |
| true |
| JMS:JAVADOC:871 | JMSSecurityRuntimeException | javax.jms.JMSSecurityRuntimeException.JMSSecurityRuntimeException
(
String
, String
)
| Constructs a JMSSecurityRuntimeException with the specified detail message and error code. | true |
| true |
| JMS:JAVADOC:872 | JMSSecurityRuntimeException | javax.jms.JMSSecurityRuntimeException.JMSSecurityRuntimeException
(
String
)
| Constructs a JMSSecurityRuntimeException with the specified detail message | true |
| true |
| JMS:JAVADOC:873 | JMSSecurityRuntimeException | javax.jms.JMSSecurityRuntimeException.JMSSecurityRuntimeException
(
String
, String
, Throwable
)
| Constructs a JMSSecurityRuntimeException with the specified detail message, error code and cause | true |
| true |
| JMS:JAVADOC:875 | long | javax.jms.Message.getJMSDeliveryTime
| Gets the message's delivery time value. When a message is sent, the JMSDeliveryTime header field is left unassigned. After completion of the send or publish method, it holds the delivery time of the message. This is the the difference, measured in milliseconds, between the delivery time and midnight, January 1, 1970 UTC. A message's delivery time is the earliest time when a JMS provider may deliver the message to a consumer. The provider must not deliver messages before the delivery time has been reached. | true |
| true |
| JMS:JAVADOC:876 | long | javax.jms.Message.getJMSDeliveryTime
throws
JMSException
| if the JMS provider fails to get the delivery time due to some internal error. | true |
| false |
| JMS:JAVADOC:877 | void | javax.jms.Message.setJMSDeliveryTime
(
long
)
| Sets the message's delivery time value. This method is for use by JMS providers only to set this field when a message is sent. This message cannot be used by clients to configure the delivery time of the message. This method is public to allow a JMS provider to set this field when sending a message whose implementation is not its own. | true |
| false |
| JMS:JAVADOC:878 | void | javax.jms.Message.setJMSDeliveryTime
(
long
)
throws
JMSException
| if the JMS provider fails to set the delivery time due to some internal error. | true |
| false |
| JMS:JAVADOC:883 | MessageFormatRuntimeException | javax.jms.MessageFormatRuntimeException.MessageFormatRuntimeException
(
String
, String
)
| Constructs a MessageFormatRuntimeException with the specified detail message and error code. | true |
| true |
| JMS:JAVADOC:884 | MessageFormatRuntimeException | javax.jms.MessageFormatRuntimeException.MessageFormatRuntimeException
(
String
)
| Constructs a MessageFormatRuntimeException with the specified detail message | true |
| true |
| JMS:JAVADOC:885 | MessageFormatRuntimeException | javax.jms.MessageFormatRuntimeException.MessageFormatRuntimeException
(
String
, String
, Throwable
)
| Constructs a MessageFormatRuntimeException with the specified detail message, error code and cause | true |
| true |
| JMS:JAVADOC:886 | long | javax.jms.MessageProducer.getDeliveryDelay
| Gets the minimum length of time in milliseconds that must elapse after a message is sent before the JMS provider may deliver the message to a consumer. | true |
| true |
| JMS:JAVADOC:887 | long | javax.jms.MessageProducer.getDeliveryDelay
throws
JMSException
| if the JMS provider fails to get the delivery delay due to some internal error. | true |
| false |
| JMS:JAVADOC:888 | void | javax.jms.MessageProducer.send
(
Message
, CompletionListener
)
| Sends a message using the MessageProducer's default delivery mode, priority, and time to live, performing part of the work involved in sending the message in a separate thread and notifying the specified CompletionListener when the operation has completed. JMS refers to this as an "asynchronous send". When the message has been successfully sent the JMS provider invokes the callback method onCompletion on an application-specified CompletionListener object. Only when that callback has been invoked can the application be sure that the message has been successfully sent with the same degree of confidence as if a normal synchronous send had been performed. An application which requires this degree of confidence must therefore wait for the callback to be invoked before continuing. The following information is intended to give an indication of how an asynchronous send would typically be implemented. In some JMS providers, a normal synchronous send involves sending the message to a remote JMS server and then waiting for an acknowledgement to be received before returning. It is expected that such a provider would implement an asynchronous send by sending the message to the remote JMS server and then returning without waiting for an acknowledgement. When the acknowledgement is received, the JMS provider would notify the application by invoking the onCompletion method on the application-specified CompletionListener object. If for some reason the acknowledgement is not received the JMS provider would notify the application by invoking the CompletionListener's onException method. In those cases where the JMS specification permits a lower level of reliability, a normal synchronous send might not wait for an acknowledgement. In that case it is expected that an asynchronous send would be similar to a synchronous send: the JMS provider would send the message to the remote JMS server and then return without waiting for an acknowledgement. However the JMS provider would still notify the application that the send had completed by invoking the onCompletion method on the application-specified CompletionListener object. It is up to the JMS provider to decide exactly what is performed in the calling thread and what, if anything, is performed asynchronously, so long as it satisfies the requirements given below: Quality of service: After the send operation has completed successfully, which means that the message has been successfully sent with the same degree of confidence as if a normal synchronous send had been performed, the JMS provider must invoke the CompletionListener's onCompletion method. The CompletionListener must not be invoked earlier than this. Exceptions: If an exception is encountered during the call to the send method then an appropriate exception should be thrown in the thread that is calling the send method. In this case the JMS provider must not invoke the CompletionListener's onCompletion or onException method. If an exception is encountered which cannot be thrown in the thread that is calling the send method then the JMS provider must call the CompletionListener's onException method. In both cases if an exception occurs it is undefined whether or not the message was successfully sent. Message order: If the same MessageProducer is used to send multiple messages then JMS message ordering requirements must be satisfied. This applies even if a combination of synchronous and asynchronous sends has been performed. The application is not required to wait for an asynchronous send to complete before sending the next message. Close, commit or rollback: If the close method is called on the MessageProducer or its Session or Connection then the JMS provider must block until any incomplete send operations have been completed and all CompletionListener callbacks have returned before closing the object and returning. If the session is transacted (uses a local transaction) then when the Session's commit or rollback method is called the JMS provider must block until any incomplete send operations have been completed and all CompletionListener callbacks have returned before performing the commit or rollback. Incomplete sends should be allowed to complete normally unless an error occurs. A CompletionListener callback method must not call close on its own Connection, Session or MessageProducer or call commit or rollback on its own Session. Doing so will cause the close, commit or rollback to throw an IllegalStateException. Restrictions on usage in Java EE This method must not be used in a Java EE EJB or web container. Doing so may cause a JMSException to be thrown though this is not guaranteed. Message headers JMS defines a number of message header fields and message properties which must be set by the "JMS provider on send". If the send is asynchronous these fields and properties may be accessed on the sending client only after the CompletionListener has been invoked. If the CompletionListener's onException method is called then the state of these message header fields and properties is undefined. Restrictions on threading: Applications that perform an asynchronous send must confirm to the threading restrictions defined in JMS. This means that the session may be used by only one thread at a time. Setting a CompletionListener does not cause the session to be dedicated to the thread of control which calls the CompletionListener. The application thread may therefore continue to use the session after performing an asynchronous send. However the CompletionListener's callback methods must not use the session if an application thread might be using the session at the same time. Use of the CompletionListener by the JMS provider: A session will only invoke one CompletionListener callback method at a time. For a given MessageProducer, callbacks (both onCompletion and onException) will be performed in the same order as the corresponding calls to the asynchronous send method. A JMS provider must not invoke the CompletionListener from the thread that is calling the asynchronous send method. Restrictions on the use of the Message object: Applications which perform an asynchronous send must take account of the restriction that a Message object is designed to be accessed by one logical thread of control at a time and does not support concurrent use. After the send method has returned, the application must not attempt to read the headers, properties or body of the Message object until the CompletionListener's onCompletion or onException method has been called. This is because the JMS provider may be modifying the Message object in another thread during this time. The JMS provider may throw an JMSException if the application attempts to access or modify the Message object after the send method has returned and before the CompletionListener has been invoked. If the JMS provider does not throw an exception then the behaviour is undefined. | true |
| true |
| JMS:JAVADOC:889 | void | javax.jms.MessageProducer.send
(
Message
, CompletionListener
)
throws
JMSException
| if an internal error occurs | true |
| false |
| JMS:JAVADOC:890 | void | javax.jms.MessageProducer.send
(
Message
, CompletionListener
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| true |
| JMS:JAVADOC:891 | void | javax.jms.MessageProducer.send
(
Message
, CompletionListener
)
throws
InvalidDestinationException
| if a client uses this method with a MessageProducer with an invalid destination. | true |
| true |
| JMS:JAVADOC:892 | void | javax.jms.MessageProducer.send
(
Message
, CompletionListener
)
throws
UnsupportedOperationException
| if a client uses this method with a MessageProducer that did not specify a destination at creation time. | true |
| true |
| JMS:JAVADOC:893 | void | javax.jms.MessageProducer.send
(
Message
, int
, int
, long
, 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. JMS refers to this as an "asynchronous send". When the message has been successfully sent the JMS provider invokes the callback method onCompletion on an application-specified CompletionListener object. Only when that callback has been invoked can the application be sure that the message has been successfully sent with the same degree of confidence as if a normal synchronous send had been performed. An application which requires this degree of confidence must therefore wait for the callback to be invoked before continuing. The following information is intended to give an indication of how an asynchronous send would typically be implemented. In some JMS providers, a normal synchronous send involves sending the message to a remote JMS server and then waiting for an acknowledgement to be received before returning. It is expected that such a provider would implement an asynchronous send by sending the message to the remote JMS server and then returning without waiting for an acknowledgement. When the acknowledgement is received, the JMS provider would notify the application by invoking the onCompletion method on the application-specified CompletionListener object. If for some reason the acknowledgement is not received the JMS provider would notify the application by invoking the CompletionListener's onException method. In those cases where the JMS specification permits a lower level of reliability, a normal synchronous send might not wait for an acknowledgement. In that case it is expected that an asynchronous send would be similar to a synchronous send: the JMS provider would send the message to the remote JMS server and then return without waiting for an acknowledgement. However the JMS provider would still notify the application that the send had completed by invoking the onCompletion method on the application-specified CompletionListener object. It is up to the JMS provider to decide exactly what is performed in the calling thread and what, if anything, is performed asynchronously, so long as it satisfies the requirements given below: Quality of service: After the send operation has completed successfully, which means that the message has been successfully sent with the same degree of confidence as if a normal synchronous send had been performed, the JMS provider must invoke the CompletionListener's onCompletion method. The CompletionListener must not be invoked earlier than this. Exceptions: If an exception is encountered during the call to the send method then an appropriate exception should be thrown in the thread that is calling the send method. In this case the JMS provider must not invoke the CompletionListener's onCompletion or onException method. If an exception is encountered which cannot be thrown in the thread that is calling the send method then the JMS provider must call the CompletionListener's onException method. In both cases if an exception occurs it is undefined whether or not the message was successfully sent. Message order: If the same MessageProducer is used to send multiple messages then JMS message ordering requirements must be satisfied. This applies even if a combination of synchronous and asynchronous sends has been performed. The application is not required to wait for an asynchronous send to complete before sending the next message. Close, commit or rollback: If the close method is called on the MessageProducer or its Session or Connection then the JMS provider must block until any incomplete send operations have been completed and all CompletionListener callbacks have returned before closing the object and returning. If the session is transacted (uses a local transaction) then when the Session's commit or rollback method is called the JMS provider must block until any incomplete send operations have been completed and all CompletionListener callbacks have returned before performing the commit or rollback. Incomplete sends should be allowed to complete normally unless an error occurs. A CompletionListener callback method must not call close on its own Connection, Session or MessageProducer or call commit or rollback on its own Session. Doing so will cause the close, commit or rollback to throw an IllegalStateException. Restrictions on usage in Java EE This method must not be used in a Java EE EJB or web container. Doing so may cause a JMSException to be thrown though this is not guaranteed. Message headers JMS defines a number of message header fields and message properties which must be set by the "JMS provider on send". If the send is asynchronous these fields and properties may be accessed on the sending client only after the CompletionListener has been invoked. If the CompletionListener's onException method is called then the state of these message header fields and properties is undefined. Restrictions on threading: Applications that perform an asynchronous send must confirm to the threading restrictions defined in JMS. This means that the session may be used by only one thread at a time. Setting a CompletionListener does not cause the session to be dedicated to the thread of control which calls the CompletionListener. The application thread may therefore continue to use the session after performing an asynchronous send. However the CompletionListener's callback methods must not use the session if an application thread might be using the session at the same time. Use of the CompletionListener by the JMS provider: A session will only invoke one CompletionListener callback method at a time. For a given MessageProducer, callbacks (both onCompletion and onException) will be performed in the same order as the corresponding calls to the asynchronous send method. A JMS provider must not invoke the CompletionListener from the thread that is calling the asynchronous send method. Restrictions on the use of the Message object: Applications which perform an asynchronous send must take account of the restriction that a Message object is designed to be accessed by one logical thread of control at a time and does not support concurrent use. After the send method has returned, the application must not attempt to read the headers, properties or body of the Message object until the CompletionListener's onCompletion or onException method has been called. This is because the JMS provider may be modifying the Message object in another thread during this time. The JMS provider may throw an JMSException if the application attempts to access or modify the Message object after the send method has returned and before the CompletionListener has been invoked. If the JMS provider does not throw an exception then the behaviour is undefined. | true |
| true |
| JMS:JAVADOC:894 | void | javax.jms.MessageProducer.send
(
Message
, int
, int
, long
, CompletionListener
)
throws
JMSException
| if an internal error occurs | true |
| false |
| JMS:JAVADOC:895 | void | javax.jms.MessageProducer.send
(
Message
, int
, int
, long
, CompletionListener
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| true |
| JMS:JAVADOC:896 | void | javax.jms.MessageProducer.send
(
Message
, int
, int
, long
, CompletionListener
)
throws
InvalidDestinationException
| if a client uses this method with a MessageProducer with an invalid destination. | true |
| true |
| JMS:JAVADOC:897 | void | javax.jms.MessageProducer.send
(
Message
, int
, int
, long
, CompletionListener
)
throws
UnsupportedOperationException
| if a client uses this method with a MessageProducer that did not specify a destination at creation time. | true |
| true |
| JMS:JAVADOC:898 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, CompletionListener
)
| Sends a message to a destination for an unidentified message producer, using the MessageProducer's default delivery mode, priority, and time to live, performing part of the work involved in sending the message in a separate thread and notifying the specified CompletionListener when the operation has completed. JMS refers to this as an "asynchronous send". Typically, a message producer is assigned a destination at creation time; however, the JMS API also supports unidentified message producers, which require that the destination be supplied every time a message is sent. When the message has been successfully sent the JMS provider invokes the callback method onCompletion on an application-specified CompletionListener object. Only when that callback has been invoked can the application be sure that the message has been successfully sent with the same degree of confidence as if a normal synchronous send had been performed. An application which requires this degree of confidence must therefore wait for the callback to be invoked before continuing. The following information is intended to give an indication of how an asynchronous send would typically be implemented. In some JMS providers, a normal synchronous send involves sending the message to a remote JMS server and then waiting for an acknowledgement to be received before returning. It is expected that such a provider would implement an asynchronous send by sending the message to the remote JMS server and then returning without waiting for an acknowledgement. When the acknowledgement is received, the JMS provider would notify the application by invoking the onCompletion method on the application-specified CompletionListener object. If for some reason the acknowledgement is not received the JMS provider would notify the application by invoking the CompletionListener's onException method. In those cases where the JMS specification permits a lower level of reliability, a normal synchronous send might not wait for an acknowledgement. In that case it is expected that an asynchronous send would be similar to a synchronous send: the JMS provider would send the message to the remote JMS server and then return without waiting for an acknowledgement. However the JMS provider would still notify the application that the send had completed by invoking the onCompletion method on the application-specified CompletionListener object. It is up to the JMS provider to decide exactly what is performed in the calling thread and what, if anything, is performed asynchronously, so long as it satisfies the requirements given below: Quality of service: After the send operation has completed successfully, which means that the message has been successfully sent with the same degree of confidence as if a normal synchronous send had been performed, the JMS provider must invoke the CompletionListener's onCompletion method. The CompletionListener must not be invoked earlier than this. Exceptions: If an exception is encountered during the call to the send method then an appropriate exception should be thrown in the thread that is calling the send method. In this case the JMS provider must not invoke the CompletionListener's onCompletion or onException method. If an exception is encountered which cannot be thrown in the thread that is calling the send method then the JMS provider must call the CompletionListener's onException method. In both cases if an exception occurs it is undefined whether or not the message was successfully sent. Message order: If the same MessageProducer is used to send multiple messages then JMS message ordering requirements must be satisfied. This applies even if a combination of synchronous and asynchronous sends has been performed. The application is not required to wait for an asynchronous send to complete before sending the next message. Close, commit or rollback: If the close method is called on the MessageProducer or its Session or Connection then the JMS provider must block until any incomplete send operations have been completed and all CompletionListener callbacks have returned before closing the object and returning. If the session is transacted (uses a local transaction) then when the Session's commit or rollback method is called the JMS provider must block until any incomplete send operations have been completed and all CompletionListener callbacks have returned before performing the commit or rollback. Incomplete sends should be allowed to complete normally unless an error occurs. A CompletionListener callback method must not call close on its own Connection, Session or MessageProducer or call commit or rollback on its own Session. Doing so will cause the close, commit or rollback to throw an IllegalStateException. Restrictions on usage in Java EE This method must not be used in a Java EE EJB or web container. Doing so may cause a JMSException to be thrown though this is not guaranteed. Message headers JMS defines a number of message header fields and message properties which must be set by the "JMS provider on send". If the send is asynchronous these fields and properties may be accessed on the sending client only after the CompletionListener has been invoked. If the CompletionListener's onException method is called then the state of these message header fields and properties is undefined. Restrictions on threading: Applications that perform an asynchronous send must confirm to the threading restrictions defined in JMS. This means that the session may be used by only one thread at a time. Setting a CompletionListener does not cause the session to be dedicated to the thread of control which calls the CompletionListener. The application thread may therefore continue to use the session after performing an asynchronous send. However the CompletionListener's callback methods must not use the session if an application thread might be using the session at the same time. Use of the CompletionListener by the JMS provider: A session will only invoke one CompletionListener callback method at a time. For a given MessageProducer, callbacks (both onCompletion and onException) will be performed in the same order as the corresponding calls to the asynchronous send method. A JMS provider must not invoke the CompletionListener from the thread that is calling the asynchronous send method. Restrictions on the use of the Message object: Applications which perform an asynchronous send must take account of the restriction that a Message object is designed to be accessed by one logical thread of control at a time and does not support concurrent use. After the send method has returned, the application must not attempt to read the headers, properties or body of the Message object until the CompletionListener's onCompletion or onException method has been called. This is because the JMS provider may be modifying the Message object in another thread during this time. The JMS provider may throw an JMSException if the application attempts to access or modify the Message object after the send method has returned and before the CompletionListener has been invoked. If the JMS provider does not throw an exception then the behaviour is undefined. | true |
| true |
| JMS:JAVADOC:899 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, CompletionListener
)
throws
JMSException
| if an internal error occurs | true |
| false |
| JMS:JAVADOC:900 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, CompletionListener
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| true |
| JMS:JAVADOC:901 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, CompletionListener
)
throws
InvalidDestinationException
| if a client uses this method with an invalid destination | true |
| true |
| JMS:JAVADOC:902 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, CompletionListener
)
throws
UnsupportedOperationException
| if a client uses this method with a MessageProducer that specified a destination at creation time. | true |
| true |
| JMS:JAVADOC:903 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, int
, int
, long
, 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. JMS refers to this as an "asynchronous send". Typically, a message producer is assigned a destination at creation time; however, the JMS API also supports unidentified message producers, which require that the destination be supplied every time a message is sent. When the message has been successfully sent the JMS provider invokes the callback method onCompletion on an application-specified CompletionListener object. Only when that callback has been invoked can the application be sure that the message has been successfully sent with the same degree of confidence as if a normal synchronous send had been performed. An application which requires this degree of confidence must therefore wait for the callback to be invoked before continuing. The following information is intended to give an indication of how an asynchronous send would typically be implemented. In some JMS providers, a normal synchronous send involves sending the message to a remote JMS server and then waiting for an acknowledgement to be received before returning. It is expected that such a provider would implement an asynchronous send by sending the message to the remote JMS server and then returning without waiting for an acknowledgement. When the acknowledgement is received, the JMS provider would notify the application by invoking the onCompletion method on the application-specified CompletionListener object. If for some reason the acknowledgement is not received the JMS provider would notify the application by invoking the CompletionListener's onException method. In those cases where the JMS specification permits a lower level of reliability, a normal synchronous send might not wait for an acknowledgement. In that case it is expected that an asynchronous send would be similar to a synchronous send: the JMS provider would send the message to the remote JMS server and then return without waiting for an acknowledgement. However the JMS provider would still notify the application that the send had completed by invoking the onCompletion method on the application-specified CompletionListener object. It is up to the JMS provider to decide exactly what is performed in the calling thread and what, if anything, is performed asynchronously, so long as it satisfies the requirements given below: Quality of service: After the send operation has completed successfully, which means that the message has been successfully sent with the same degree of confidence as if a normal synchronous send had been performed, the JMS provider must invoke the CompletionListener's onCompletion method. The CompletionListener must not be invoked earlier than this. Exceptions: If an exception is encountered during the call to the send method then an appropriate exception should be thrown in the thread that is calling the send method. In this case the JMS provider must not invoke the CompletionListener's onCompletion or onException method. If an exception is encountered which cannot be thrown in the thread that is calling the send method then the JMS provider must call the CompletionListener's onException method. In both cases if an exception occurs it is undefined whether or not the message was successfully sent. Message order: If the same MessageProducer is used to send multiple messages then JMS message ordering requirements must be satisfied. This applies even if a combination of synchronous and asynchronous sends has been performed. The application is not required to wait for an asynchronous send to complete before sending the next message. Close, commit or rollback: If the close method is called on the MessageProducer or its Session or Connection then the JMS provider must block until any incomplete send operations have been completed and all CompletionListener callbacks have returned before closing the object and returning. If the session is transacted (uses a local transaction) then when the Session's commit or rollback method is called the JMS provider must block until any incomplete send operations have been completed and all CompletionListener callbacks have returned before performing the commit or rollback. Incomplete sends should be allowed to complete normally unless an error occurs. A CompletionListener callback method must not call close on its own Connection, Session or MessageProducer or call commit or rollback on its own Session. Doing so will cause the close, commit or rollback to throw an IllegalStateException. Restrictions on usage in Java EE This method must not be used in a Java EE EJB or web container. Doing so may cause a JMSException to be thrown though this is not guaranteed. Message headers JMS defines a number of message header fields and message properties which must be set by the "JMS provider on send". If the send is asynchronous these fields and properties may be accessed on the sending client only after the CompletionListener has been invoked. If the CompletionListener's onException method is called then the state of these message header fields and properties is undefined. Restrictions on threading: Applications that perform an asynchronous send must confirm to the threading restrictions defined in JMS. This means that the session may be used by only one thread at a time. Setting a CompletionListener does not cause the session to be dedicated to the thread of control which calls the CompletionListener. The application thread may therefore continue to use the session after performing an asynchronous send. However the CompletionListener's callback methods must not use the session if an application thread might be using the session at the same time. Use of the CompletionListener by the JMS provider: A session will only invoke one CompletionListener callback method at a time. For a given MessageProducer, callbacks (both onCompletion and onException) will be performed in the same order as the corresponding calls to the asynchronous send method. A JMS provider must not invoke the CompletionListener from the thread that is calling the asynchronous send method. Restrictions on the use of the Message object: Applications which perform an asynchronous send must take account of the restriction that a Message object is designed to be accessed by one logical thread of control at a time and does not support concurrent use. After the send method has returned, the application must not attempt to read the headers, properties or body of the Message object until the CompletionListener's onCompletion or onException method has been called. This is because the JMS provider may be modifying the Message object in another thread during this time. The JMS provider may throw an JMSException if the application attempts to access or modify the Message object after the send method has returned and before the CompletionListener has been invoked. If the JMS provider does not throw an exception then the behaviour is undefined. | true |
| true |
| JMS:JAVADOC:904 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, int
, int
, long
, CompletionListener
)
throws
JMSException
| if an internal error occurs | true |
| false |
| JMS:JAVADOC:905 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, int
, int
, long
, CompletionListener
)
throws
MessageFormatException
| if an invalid message is specified. | true |
| true |
| JMS:JAVADOC:906 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, int
, int
, long
, CompletionListener
)
throws
InvalidDestinationException
| if a client uses this method with an invalid destination. | true |
| true |
| JMS:JAVADOC:907 | void | javax.jms.MessageProducer.setDeliveryDelay
(
long
)
| Sets the minimum length of time in milliseconds that must elapse after a message is sent before the JMS provider may deliver the message to a consumer. For transacted sends, this time starts when the client sends the message, not when the transaction is committed. deliveryDelay is set to zero by default. | true |
| true |
| JMS:JAVADOC:908 | void | javax.jms.MessageProducer.setDeliveryDelay
(
long
)
throws
JMSException
| if the JMS provider fails to set the delivery delay due to some internal error. | true |
| false |
| JMS:JAVADOC:909 | void | javax.jms.JMSContext.acknowledge
| Acknowledges all messages consumed by the JMSContext's session. This method is for use when the session has an acknowledgement mode of CLIENT_ACKNOWLEDGE. If the session is transacted or has an acknowledgement mode of AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE calling this method has no effect. This method has identical behaviour to the acknowledge method on Message. A client may individually acknowledge each message as it is consumed, or it may choose to acknowledge messages as an application-defined group. In both cases it makes no difference which of these two methods is used. Messages that have been received but not acknowledged may be redelivered. This method must not be used if the JMSContext is container-managed (injected). Doing so will cause a IllegalStateRuntimeException to be thrown. | true |
| true |
| JMS:JAVADOC:912 | void | javax.jms.JMSContext.close
| Closes the JMSContext This closes the underlying session and any underlying producers and consumers. If there are no other active (not closed) JMSContext objects using the underlying connection then this method also closes the underlying connection. Since a provider typically allocates significant resources outside the JVM on behalf of a connection, clients should close these resources when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. Closing a connection causes all temporary destinations to be deleted. When this method is invoked, it should not return until message processing has been shut down in an orderly fashion. This means that all message listeners that may have been running have returned, and that all pending receives have returned. A close terminates all pending message receives on the connection's sessions' consumers. The receives may return with a message or with null, depending on whether there was a message available at the time of the close. If one or more of the connection's sessions' message listeners is processing a message at the time when connection close is invoked, all the facilities of the connection and its sessions must remain available to those listeners until they return control to the JMS provider. This method must not return until any incomplete asynchronous send operations for this JMSContext have been completed and any CompletionListener callbacks have returned. Incomplete sends should be allowed to complete normally unless an error occurs. For the avoidance of doubt, if an exception listener for the JMSContext's connection is running when close is invoked, there is no requirement for the close call to wait until the exception listener has returned before it may return. Closing a connection causes any of its sessions' transactions in progress to be rolled back. In the case where a session's work is coordinated by an external transaction manager, a session's commit and rollback methods are not used and the result of a closed session's work is determined later by the transaction manager. Closing a connection does NOT force an acknowledgment of client-acknowledged sessions. Invoking the acknowledge method of a received message from a closed connection's session must throw an IllegalStateRuntimeException. Closing a closed connection must NOT throw an exception. A MessageListener must not attempt to close its own JMSContext as this would lead to deadlock. The JMS provider must detect this and throw a IllegalStateRuntimeException. A CompletionListener callback method must not call close on its own JMSContext. Doing so will cause an IllegalStateRuntimeException to be thrown. This method must not be used if the JMSContext is container-managed (injected). Doing so will cause a IllegalStateRuntimeException to be thrown. | true |
| true |
| JMS:JAVADOC:914 | void | javax.jms.JMSContext.commit
| Commits all messages done in this transaction and releases any locks currently held. This method must not return until any incomplete asynchronous send operations for this JMSContext have been completed and any CompletionListener callbacks have returned. Incomplete sends should be allowed to complete normally unless an error occurs. A CompletionListener callback method must not call commit on its own JMSContext. Doing so will cause an IllegalStateRuntimeException to be thrown. This method must not be used if the JMSContext is container-managed (injected). Doing so will cause a IllegalStateRuntimeException to be thrown. | true |
| true |
| JMS:JAVADOC:915 | void | javax.jms.JMSContext.commit
throws
JMSRuntimeException
| if the JMS provider fails to commit the transaction due to some internal error | true |
| false |
| JMS:JAVADOC:916 | void | javax.jms.JMSContext.commit
throws
TransactionRolledBackRuntimeException
| if the transaction is rolled back due to some internal error during commit. | true |
| false |
| JMS:JAVADOC:917 | void | javax.jms.JMSContext.commit
throws
IllegalStateRuntimeException
| if the JMSContext's session is not using a local transaction if this method has been called by a CompletionListener callback method on its own JMSContext if the JMSContext is container-managed (injected) | true |
| true |
| JMS:JAVADOC:918 | QueueBrowser | javax.jms.JMSContext.createBrowser
(
Queue
)
| Creates a QueueBrowser object to peek at the messages on the specified queue. | true |
| true |
| JMS:JAVADOC:919 | QueueBrowser | javax.jms.JMSContext.createBrowser
(
Queue
)
throws
JMSRuntimeException
| if the session fails to create a browser due to some internal error. | true |
| false |
| JMS:JAVADOC:920 | QueueBrowser | javax.jms.JMSContext.createBrowser
(
Queue
)
throws
InvalidRuntimeDestinationException
| if an invalid destination is specified | true |
| true |
| JMS:JAVADOC:921 | QueueBrowser | javax.jms.JMSContext.createBrowser
(
Queue
, String
)
| Creates a QueueBrowser object to peek at the messages on the specified queue using a message selector. | true |
| true |
| JMS:JAVADOC:922 | QueueBrowser | javax.jms.JMSContext.createBrowser
(
Queue
, String
)
throws
JMSRuntimeException
| if the session fails to create a browser due to some internal error. | true |
| false |
| JMS:JAVADOC:923 | QueueBrowser | javax.jms.JMSContext.createBrowser
(
Queue
, String
)
throws
InvalidRuntimeDestinationException
| if an invalid destination is specified | true |
| true |
| JMS:JAVADOC:924 | QueueBrowser | javax.jms.JMSContext.createBrowser
(
Queue
, String
)
throws
InvalidRuntimeSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:925 | BytesMessage | javax.jms.JMSContext.createBytesMessage
| Creates a BytesMessage object. A BytesMessage object is used to send a message containing a stream of uninterpreted bytes. | true |
| true |
| JMS:JAVADOC:926 | BytesMessage | javax.jms.JMSContext.createBytesMessage
throws
JMSRuntimeException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:927 | MapMessage | javax.jms.JMSContext.createMapMessage
| Creates a MapMessage object. A MapMessage object is used to send a self-defining set of name-value pairs, where names are String objects and values are primitive values in the Java programming language. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:928 | MapMessage | javax.jms.JMSContext.createMapMessage
throws
JMSRuntimeException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:929 | Message | javax.jms.JMSContext.createMessage
| Creates a Message object. The Message interface is the root interface of all JMS messages. A Message object holds all the standard message header information. It can be sent when a message containing only header information is sufficient. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:930 | Message | javax.jms.JMSContext.createMessage
throws
JMSRuntimeException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:931 | JMSContext | javax.jms.JMSContext.createContext
(
int
)
| Creates a new JMSContext with the specified session mode using the same connection as this JMSContext and creating a new session. This method does not start the connection. If the connection has not already been started then it will be automatically started when a JMSConsumer is created on any of the JMSContext objects for that connection. If sessionMode is set to JMSContext.SESSION_TRANSACTED then the session will use a local transaction which may subsequently be committed or rolled back by calling the JMSContext's commit or rollback methods. If sessionMode is set to any of JMSContext.CLIENT_ACKNOWLEDGE, JMSContext.AUTO_ACKNOWLEDGE or JMSContext.DUPS_OK_ACKNOWLEDGE. then the session will be non-transacted and messages received by this session will be acknowledged according to the value of sessionMode. For a definition of the meaning of these acknowledgement modes see the links below. This method must not be used by applications running in the Java EE web or EJB containers because doing so would violate the restriction that such an application must not attempt to create more than one active (not closed) Session object per connection. If this method is called in a Java EE web or EJB container then a JMSRuntimeException will be thrown. | true |
| true |
| JMS:JAVADOC:932 | JMSContext | javax.jms.JMSContext.createContext
(
int
)
throws
JMSRuntimeException
| if the JMS provider fails to create the JMSContext due to some internal error or because this method is being called in a Java EE web or EJB application. | true |
| false |
| JMS:JAVADOC:934 | ObjectMessage | javax.jms.JMSContext.createObjectMessage
| Creates an ObjectMessage object. An ObjectMessage object is used to send a message that contains a serializable Java object. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:935 | ObjectMessage | javax.jms.JMSContext.createObjectMessage
throws
JMSRuntimeException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:936 | ObjectMessage | javax.jms.JMSContext.createObjectMessage
(
Serializable
)
| Creates an initialized ObjectMessage object. An ObjectMessage object is used to send a message that contains a serializable Java object. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:937 | ObjectMessage | javax.jms.JMSContext.createObjectMessage
(
Serializable
)
throws
JMSRuntimeException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:938 | Queue | javax.jms.JMSContext.createQueue
(
String
)
| Creates a Queue object which encapsulates a specified provider-specific queue name. The use of provider-specific queue names in an application may render the application non-portable. Portable applications are recommended to not use this method but instead look up an administratively-defined Queue object using JNDI. Note that this method simply creates an object that encapsulates the name of a queue. It does not create the physical queue in the JMS provider. JMS does not provide a method to create the physical queue, since this would be specific to a given JMS provider. Creating a physical queue is provider-specific and is typically an administrative task performed by an administrator, though some providers may create them automatically when needed. The one exception to this is the creation of a temporary queue, which is done using the createTemporaryQueue method. | true |
| false |
| JMS:JAVADOC:939 | Queue | javax.jms.JMSContext.createQueue
(
String
)
throws
JMSRuntimeException
| if a Queue object cannot be created due to some internal error | true |
| false |
| JMS:JAVADOC:940 | StreamMessage | javax.jms.JMSContext.createStreamMessage
| Creates a StreamMessage object. A StreamMessage object is used to send a self-defining stream of primitive values in the Java programming language. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:941 | StreamMessage | javax.jms.JMSContext.createStreamMessage
throws
JMSRuntimeException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:942 | JMSConsumer | javax.jms.JMSContext.createConsumer
(
Destination
)
| Creates a JMSConsumer for the specified destination. A client uses a JMSConsumer object to receive messages that have been sent to a destination. | true |
| true |
| JMS:JAVADOC:943 | JMSConsumer | javax.jms.JMSContext.createConsumer
(
Destination
)
throws
JMSRuntimeException
| if the session fails to create a JMSConsumer due to some internal error. | true |
| false |
| JMS:JAVADOC:944 | JMSConsumer | javax.jms.JMSContext.createConsumer
(
Destination
)
throws
InvalidDestinationRuntimeException
| if an invalid destination is specified. | true |
| true |
| JMS:JAVADOC:945 | JMSConsumer | javax.jms.JMSContext.createConsumer
(
Destination
, String
)
| Creates a JMSConsumer for the specified destination, using a message selector. A client uses a JMSConsumer object to receive messages that have been sent to a destination. | true |
| true |
| JMS:JAVADOC:946 | JMSConsumer | javax.jms.JMSContext.createConsumer
(
Destination
, String
)
throws
JMSRuntimeException
| if the session fails to create a JMSConsumer due to some internal error. | true |
| false |
| JMS:JAVADOC:947 | JMSConsumer | javax.jms.JMSContext.createConsumer
(
Destination
, String
)
throws
InvalidDestinationRuntimeException
| if an invalid destination is specified. | true |
| true |
| JMS:JAVADOC:948 | JMSConsumer | javax.jms.JMSContext.createConsumer
(
Destination
, String
)
throws
InvalidSelectorRuntimeException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:949 | JMSConsumer | javax.jms.JMSContext.createConsumer
(
Destination
, String
, boolean
)
| Creates a JMSConsumer for the specified destination, specifying a message selector and the noLocal parameter. A client uses a JMSConsumer object to receive messages that have been sent to a destination. The noLocal argument is for use when the destination is a topic and the JMSContext's connection is also being used to publish messages to that topic. If noLocal is set to true then the JMSConsumer will not receive messages published to the topic by its own connection. The default value of this argument is false. If the destination is a queue then the effect of setting noLocal to true is not specified. | true |
| true |
| JMS:JAVADOC:950 | JMSConsumer | javax.jms.JMSContext.createConsumer
(
Destination
, String
, boolean
)
throws
JMSRuntimeException
| if the session fails to create a JMSConsumer due to some internal error. | true |
| false |
| JMS:JAVADOC:951 | JMSConsumer | javax.jms.JMSContext.createConsumer
(
Destination
, String
, boolean
)
throws
InvalidDestinationRuntimeException
| if an invalid destination is specified. | true |
| true |
| JMS:JAVADOC:952 | JMSConsumer | javax.jms.JMSContext.createConsumer
(
Destination
, String
, boolean
)
throws
InvalidSelectorRuntimeException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:953 | JMSConsumer | javax.jms.JMSContext.createDurableConsumer
(
Topic
, String
)
| Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription. This method creates the durable subscription without a message selector and with a noLocal value of false. A durable subscription is used by an application which needs to receive all the messages published on a topic, including the ones published when there is no active consumer associated with it. The JMS provider retains a record of this durable subscription and ensures that all messages from the topic's publishers are retained until they are delivered to, and acknowledged by, a consumer on this durable subscription or until they have expired. A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method. This method may only be used with unshared durable subscriptions. Any durable subscription created using this method will be unshared. This means that only one active (i.e. not closed) consumer on the subscription may exist at a time. The term "consumer" here means a TopicSubscriber, MessageConsumer or JMSConsumer object in any client. An unshared durable subscription is identified by a name specified by the client and by the client identifier, which must be set. An application which subsequently wishes to create a consumer on that unshared durable subscription must use the same client identifier. If an unshared durable subscription already exists with the same name and client identifier, and the same topic, message selector and noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this method creates a JMSConsumer on the existing durable subscription. If an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active (i.e. not closed) on the durable subscription, then a JMSRuntimeException will be thrown. If an unshared durable subscription already exists with the same name and client identifier but a different topic, message selector or noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this is equivalent to unsubscribing (deleting) the old one and creating a new one. A shared durable subscription and an unshared durable subscription may not have the same name and client identifier. If a shared durable subscription already exists with the same name and client identifier then a JMSRuntimeException is thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId. Such subscriptions would be completely separate. | true |
| true |
| JMS:JAVADOC:954 | JMSConsumer | javax.jms.JMSContext.createDurableConsumer
(
Topic
, String
)
throws
JMSRuntimeException
| if the session fails to create the non-shared durable subscription and JMSConsumer due to some internal error if an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active if a shared durable subscription already exists with the same name and client identifier | true |
| true |
| JMS:JAVADOC:955 | JMSConsumer | javax.jms.JMSContext.createDurableConsumer
(
Topic
, String
)
throws
InvalidDestinationRuntimeException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:956 | JMSConsumer | javax.jms.JMSContext.createDurableConsumer
(
Topic
, String
, String
, boolean
)
| Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and the noLocal parameter, and creates a consumer on that durable subscription. A durable subscription is used by an application which needs to receive all the messages published on a topic, including the ones published when there is no active consumer associated with it. The JMS provider retains a record of this durable subscription and ensures that all messages from the topic's publishers are retained until they are delivered to, and acknowledged by, a consumer on this durable subscription or until they have expired. A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method. This method may only be used with unshared durable subscriptions. Any durable subscription created using this method will be unshared. This means that only one active (i.e. not closed) consumer on the subscription may exist at a time. The term "consumer" here means a TopicSubscriber, MessageConsumer or JMSConsumer object in any client. An unshared durable subscription is identified by a name specified by the client and by the client identifier, which must be set. An application which subsequently wishes to create a consumer on that unshared durable subscription must use the same client identifier. If an unshared durable subscription already exists with the same name and client identifier, and the same topic, message selector and noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this method creates a JMSConsumer on the existing durable subscription. If an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active (i.e. not closed) on the durable subscription, then a JMSRuntimeException will be thrown. If an unshared durable subscription already exists with the same name and client identifier but a different topic, message selector or noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this is equivalent to unsubscribing (deleting) the old one and creating a new one. If noLocal is set to true then any messages published to the topic using this JMSContext's connection, or any other connection with the same client identifier, will not be added to the durable subscription. A shared durable subscription and an unshared durable subscription may not have the same name and client identifier. If a shared durable subscription already exists with the same name and client identifier then a JMSRuntimeException is thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId. Such subscriptions would be completely separate. This method is identical to the corresponding createDurableSubscriber method except that it returns a MessageConsumer rather than a TopicSubscriber to represent the consumer. | true |
| true |
| JMS:JAVADOC:957 | JMSConsumer | javax.jms.JMSContext.createDurableConsumer
(
Topic
, String
, String
, boolean
)
throws
JMSRuntimeException
| if the session fails to create the non-shared durable subscription and JMSConsumer due to some internal error if an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active if a shared durable subscription already exists with the same name and client identifier | true |
| true |
| JMS:JAVADOC:958 | JMSConsumer | javax.jms.JMSContext.createDurableConsumer
(
Topic
, String
, String
, boolean
)
throws
InvalidDestinationRuntimeException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:959 | JMSConsumer | javax.jms.JMSContext.createDurableConsumer
(
Topic
, String
, String
, boolean
)
throws
InvalidSelectorRuntimeException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:960 | TemporaryQueue | javax.jms.JMSContext.createTemporaryQueue
| Creates a TemporaryQueue object. Its lifetime will be that of the JMSContext's Connection unless it is deleted earlier. | true |
| true |
| JMS:JAVADOC:961 | TemporaryQueue | javax.jms.JMSContext.createTemporaryQueue
throws
JMSRuntimeException
| if the session fails to create a temporary queue due to some internal error. | true |
| false |
| JMS:JAVADOC:962 | TemporaryTopic | javax.jms.JMSContext.createTemporaryTopic
| Creates a TemporaryTopic object. Its lifetime will be that of the JMSContext's Connection unless it is deleted earlier. | true |
| true |
| JMS:JAVADOC:963 | TemporaryTopic | javax.jms.JMSContext.createTemporaryTopic
throws
JMSRuntimeException
| if the session fails to create a temporary topic due to some internal error. | true |
| false |
| JMS:JAVADOC:964 | TextMessage | javax.jms.JMSContext.createTextMessage
| Creates a TextMessage object. A TextMessage object is used to send a message containing a String object. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:965 | TextMessage | javax.jms.JMSContext.createTextMessage
throws
JMSRuntimeException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:966 | TextMessage | javax.jms.JMSContext.createTextMessage
(
String
)
| Creates an initialized TextMessage object. A TextMessage object is used to send a message containing a String. The message object returned may be sent using any Session or JMSContext. It is not restricted to being sent using the JMSContext used to create it. The message object returned may be optimised for use with the JMS provider used to create it. However it can be sent using any JMS provider, not just the JMS provider used to create it. | true |
| true |
| JMS:JAVADOC:967 | TextMessage | javax.jms.JMSContext.createTextMessage
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to create this message due to some internal error. | true |
| false |
| JMS:JAVADOC:968 | Topic | javax.jms.JMSContext.createTopic
(
String
)
| Creates a Topic object which encapsulates a specified provider-specific topic name. The use of provider-specific topic names in an application may render the application non-portable. Portable applications are recommended to not use this method but instead look up an administratively-defined Topic object using JNDI. Note that this method simply creates an object that encapsulates the name of a topic. It does not create the physical topic in the JMS provider. JMS does not provide a method to create the physical topic, since this would be specific to a given JMS provider. Creating a physical topic is provider-specific and is typically an administrative task performed by an administrator, though some providers may create them automatically when needed. The one exception to this is the creation of a temporary topic, which is done using the createTemporaryTopic method. | true |
| true |
| JMS:JAVADOC:969 | Topic | javax.jms.JMSContext.createTopic
(
String
)
throws
JMSRuntimeException
| if a Topic object cannot be created due to some internal error | true |
| false |
| JMS:JAVADOC:970 | String | javax.jms.JMSContext.getClientID
| Gets the client identifier for the JMSContext's connection. This value is specific to the JMS provider. It is either preconfigured by an administrator in a ConnectionFactory object or assigned dynamically by the application by calling the setClientID method. | true |
| true |
| JMS:JAVADOC:971 | String | javax.jms.JMSContext.getClientID
throws
JMSRuntimeException
| if the JMS provider fails to return the client ID for the JMSContext's connection due to some internal error. | true |
| false |
| JMS:JAVADOC:980 | ExceptionListener | javax.jms.JMSContext.getExceptionListener
| Gets the ExceptionListener object for the JMSContext's connection. Not every Connection has an ExceptionListener associated with it. | true |
| true |
| JMS:JAVADOC:981 | ExceptionListener | javax.jms.JMSContext.getExceptionListener
throws
JMSRuntimeException
| if the JMS provider fails to get the ExceptionListener for the JMSContext's connection. | true |
| false |
| JMS:JAVADOC:982 | ConnectionMetaData | javax.jms.JMSContext.getMetaData
| Gets the connection metadata for the JMSContext's connection. | true |
| true |
| JMS:JAVADOC:983 | ConnectionMetaData | javax.jms.JMSContext.getMetaData
throws
JMSRuntimeException
| if the JMS provider fails to get the connection metadata | true |
| false |
| JMS:JAVADOC:986 | int | javax.jms.JMSContext.getSessionMode
| Returns the session mode of the JMSContext's session. This can be set at the time that the JMSContext is created. Possible values are JMSContext.SESSION_TRANSACTED, JMSContext.AUTO_ACKNOWLEDGE, JMSContext.CLIENT_ACKNOWLEDGE and JMSContext.DUPS_OK_ACKNOWLEDGE If a session mode was not specified when the JMSContext was created a value of JMSContext.AUTO_ACKNOWLEDGE will be returned. | true |
| true |
| JMS:JAVADOC:987 | int | javax.jms.JMSContext.getSessionMode
throws
JMSRuntimeException
| if the JMS provider fails to return the acknowledgment mode due to some internal error. | true |
| false |
| JMS:JAVADOC:990 | boolean | javax.jms.JMSContext.getTransacted
| Indicates whether the JMSContext's session is in transacted mode. | true |
| true |
| JMS:JAVADOC:991 | boolean | javax.jms.JMSContext.getTransacted
throws
JMSRuntimeException
| if the JMS provider fails to return the transaction mode due to some internal error. | true |
| false |
| JMS:JAVADOC:992 | void | javax.jms.JMSContext.recover
| Stops message delivery in the JMSContext's session, and restarts message delivery with the oldest unacknowledged message. All consumers deliver messages in a serial order. Acknowledging a received message automatically acknowledges all messages that have been delivered to the client. Restarting a session causes it to take the following actions: Stop message delivery Mark all messages that might have been delivered but not acknowledged as "redelivered" Restart the delivery sequence including all unacknowledged messages that had been previously delivered. Redelivered messages do not have to be delivered in exactly their original delivery order. This method must not be used if the JMSContext is container-managed (injected). Doing so will cause a IllegalStateRuntimeException to be thrown. | true |
| true |
| JMS:JAVADOC:993 | void | javax.jms.JMSContext.recover
throws
JMSRuntimeException
| if the JMS provider fails to stop and restart message delivery due to some internal error | true |
| false |
| JMS:JAVADOC:994 | void | javax.jms.JMSContext.recover
throws
IllegalStateRuntimeException
| if the JMSContext's session is using a transaction if the JMSContext is container-managed (injected) | true |
| true |
| JMS:JAVADOC:995 | void | javax.jms.JMSContext.rollback
| Rolls back any messages done in this transaction and releases any locks currently held. This method must not return until any incomplete asynchronous send operations for this JMSContext have been completed and any CompletionListener callbacks have returned. Incomplete sends should be allowed to complete normally unless an error occurs. A CompletionListener callback method must not call rollback on its own JMSContext. Doing so will cause an IllegalStateRuntimeException to be thrown. This method must not be used if the JMSContext is container-managed (injected). Doing so will cause a IllegalStateRuntimeException to be thrown. | true |
| true |
| JMS:JAVADOC:996 | void | javax.jms.JMSContext.rollback
throws
JMSRuntimeException
| if the JMS provider fails to roll back the transaction due to some internal error | true |
| false |
| JMS:JAVADOC:997 | void | javax.jms.JMSContext.rollback
throws
IllegalStateRuntimeException
| if the JMSContext's session is not using a local transaction if this method has been called by a CompletionListener callback method on its own JMSContext if the JMSContext is container-managed (injected) | true |
| true |
| JMS:JAVADOC:1040 | void | javax.jms.JMSContext.setClientID
(
String
)
| Sets the client identifier for the JMSContext's connection. The preferred way to assign a JMS client's client identifier is for it to be configured in a client-specific ConnectionFactory object and transparently assigned to the Connection object it creates. Alternatively, a client can set the client identifier for the MessageContext's connection using a provider-specific value. The facility to set its client identifier explicitly is not a mechanism for overriding the identifier that has been administratively configured. It is provided for the case where no administratively specified identifier exists. If one does exist, an attempt to change it by setting it must throw an IllegalStateRuntimeException. If a client sets the client identifier explicitly, it must do so immediately after it creates the JMSContext and before any other action on the JMSContext is taken. After this point, setting the client identifier is a programming error that should throw an IllegalStateRuntimeException. The purpose of the client identifier is to associate the JMSContext's connection and its objects with a state maintained on behalf of the client by a provider. The only such state identified by the JMS API is that required to support durable subscriptions. If another connection with the same clientID is already running when this method is called, the JMS provider should detect the duplicate ID and throw an InvalidClientIDException. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSRuntimeException to be thrown though this is not guaranteed. This method must not be used if the JMSContext is container-managed (injected). Doing so will cause a IllegalStateRuntimeException to be thrown. | true |
| true |
| JMS:JAVADOC:1041 | void | javax.jms.JMSContext.setClientID
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to set the client ID for the the JMSContext's connection for one of the following reasons: an internal error has occurred or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | true |
| false |
| JMS:JAVADOC:1042 | void | javax.jms.JMSContext.setClientID
(
String
)
throws
InvalidClientIDRuntimeException
| if the JMS client specifies an invalid or duplicate client ID. | true |
| true |
| JMS:JAVADOC:1043 | void | javax.jms.JMSContext.setClientID
(
String
)
throws
IllegalStateRuntimeException
| if the JMS client attempts to set the client ID for the JMSContext's connection at the wrong time or if the client ID has been administratively configured or if the JMSContext is container-managed (injected). | true |
| true |
| JMS:JAVADOC:1052 | void | javax.jms.JMSContext.setExceptionListener
(
ExceptionListener
)
| Sets an exception listener for the JMSContext's connection. If a JMS provider detects a serious problem with a connection, it informs the connection's ExceptionListener, if one has been registered. It does this by calling the listener's onException method, passing it a JMSRuntimeException object describing the problem. An exception listener allows a client to be notified of a problem asynchronously. Some connections only consume messages, so they would have no other way to learn their connection has failed. A connection serializes execution of its ExceptionListener. A JMS provider should attempt to resolve connection problems itself before it notifies the client of them. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSRuntimeException to be thrown though this is not guaranteed. This method must not be used if the JMSContext is container-managed (injected). Doing so will cause a IllegalStateRuntimeException to be thrown. | true |
| true |
| JMS:JAVADOC:1053 | void | javax.jms.JMSContext.setExceptionListener
(
ExceptionListener
)
throws
JMSRuntimeException
| if the JMS provider fails to set the exception listener for one of the following reasons: an internal error has occurred or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | true |
| false |
| JMS:JAVADOC:1076 | void | javax.jms.JMSContext.start
| Starts (or restarts) delivery of incoming messages by the JMSContext's connection. A call to start on a connection that has already been started is ignored. This method must not be used if the JMSContext is container-managed (injected). Doing so will cause a IllegalStateRuntimeException to be thrown. | true |
| true |
| JMS:JAVADOC:1077 | void | javax.jms.JMSContext.start
throws
JMSRuntimeException
| if the JMS provider fails to start message delivery due to some internal error. | true |
| false |
| JMS:JAVADOC:1078 | void | javax.jms.JMSContext.stop
| Temporarily stops the delivery of incoming messages by the JMSContext's connection. Delivery can be restarted using the start method. When the connection is stopped, delivery to all the connection's message consumers is inhibited: synchronous receives block, and messages are not delivered to message listeners. This call blocks until receives and/or message listeners in progress have completed. Stopping a connection has no effect on its ability to send messages. A call to stop on a connection that has already been stopped is ignored. A call to stop must not return until delivery of messages has paused. This means that a client can rely on the fact that none of its message listeners will be called and that all threads of control waiting for receive calls to return will not return with a message until the connection is restarted. The receive timers for a stopped connection continue to advance, so receives may time out while the connection is stopped. If message listeners are running when stop is invoked, the stop call must wait until all of them have returned before it may return. While these message listeners are completing, they must have the full services of the connection available to them. A message listener must not attempt to stop its own JMSContext as this would lead to deadlock. The JMS provider must detect this and throw a IllegalStateRuntimeException For the avoidance of doubt, if an exception listener for the JMSContext's connection is running when stop is invoked, there is no requirement for the stop call to wait until the exception listener has returned before it may return. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSRuntimeException to be thrown though this is not guaranteed. This method must not be used if the JMSContext is container-managed (injected). Doing so will cause a IllegalStateRuntimeException to be thrown. | true |
| true |
| JMS:JAVADOC:1079 | void | javax.jms.JMSContext.stop
throws
JMSRuntimeException
| if the JMS provider fails to stop message delivery for one of the following reasons: an internal error has occurred or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | true |
| false |
| JMS:JAVADOC:1084 | void | javax.jms.JMSContext.unsubscribe
(
String
)
| Unsubscribes a durable subscription that has been created by a client. This method deletes the state being maintained on behalf of the subscriber by its provider. A durable subscription is identified by a name specified by the client and by the client identifier if set. If the client identifier was set when the durable subscription was created then a client which subsequently wishes to use this method to delete a durable subscription must use the same client identifier. It is erroneous for a client to delete a durable subscription while there is an active (not closed) consumer on that subscription, or while a consumed message is part of a pending transaction or has not been acknowledged in the session. If the active consumer is represented by a JMSConsumer then calling close on either that object or the JMSContext used to create it will render the consumer inactive and allow the subscription to be deleted. If the active consumer was created by calling setMessageListener on the JMSContext then calling close on the JMSContext will render the consumer inactive and allow the subscription to be deleted. If the active consumer is represented by a MessageConsumer or TopicSubscriber then calling close on that object or on the Session or Connection used to create it will render the consumer inactive and allow the subscription to be deleted. | true |
| true |
| JMS:JAVADOC:1085 | void | javax.jms.JMSContext.unsubscribe
(
String
)
throws
JMSRuntimeException
| if the session fails to unsubscribe to the durable subscription due to some internal error. | true |
| false |
| JMS:JAVADOC:1086 | void | javax.jms.JMSContext.unsubscribe
(
String
)
throws
InvalidDestinationRuntimeException
| if an invalid subscription name is specified. | true |
| true |
| JMS:JAVADOC:1087 | MessageConsumer | javax.jms.Session.createDurableConsumer
(
Topic
, String
)
| Creates an unshared durable subscription on the specified topic (if one does not already exist) and creates a consumer on that durable subscription. This method creates the durable subscription without a message selector and with a noLocal value of false. A durable subscription is used by an application which needs to receive all the messages published on a topic, including the ones published when there is no active consumer associated with it. The JMS provider retains a record of this durable subscription and ensures that all messages from the topic's publishers are retained until they are delivered to, and acknowledged by, a consumer on this durable subscription or until they have expired. A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method. This method may only be used with unshared durable subscriptions. Any durable subscription created using this method will be unshared. This means that only one active (i.e. not closed) consumer on the subscription may exist at a time. The term "consumer" here means a TopicSubscriber, MessageConsumer or JMSConsumer object in any client. An unshared durable subscription is identified by a name specified by the client and by the client identifier, which must be set. An application which subsequently wishes to create a consumer on that unshared durable subscription must use the same client identifier. If an unshared durable subscription already exists with the same name and client identifier, and the same topic, message selector and noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this method creates a MessageConsumer on the existing durable subscription. If an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active (i.e. not closed) on the durable subscription, then a JMSException will be thrown. If an unshared durable subscription already exists with the same name and client identifier but a different topic, message selector or noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this is equivalent to unsubscribing (deleting) the old one and creating a new one. A shared durable subscription and an unshared durable subscription may not have the same name and client identifier. If a shared durable subscription already exists with the same name and client identifier then a JMSException is thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId. Such subscriptions would be completely separate. This method is identical to the corresponding createDurableSubscriber method except that it returns a MessageConsumer rather than a TopicSubscriber to represent the consumer. | true |
| true |
| JMS:JAVADOC:1088 | MessageConsumer | javax.jms.Session.createDurableConsumer
(
Topic
, String
)
throws
JMSException
| if the session fails to create the unshared durable subscription and MessageConsumer due to some internal error if an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active if a shared durable subscription already exists with the same name and client identifier | true |
| false |
| JMS:JAVADOC:1089 | MessageConsumer | javax.jms.Session.createDurableConsumer
(
Topic
, String
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:1090 | MessageConsumer | javax.jms.Session.createDurableConsumer
(
Topic
, String
, String
, boolean
)
| Creates an unshared durable subscription on the specified topic (if one does not already exist), specifying a message selector and the noLocal parameter, and creates a consumer on that durable subscription. A durable subscription is used by an application which needs to receive all the messages published on a topic, including the ones published when there is no active consumer associated with it. The JMS provider retains a record of this durable subscription and ensures that all messages from the topic's publishers are retained until they are delivered to, and acknowledged by, a consumer on this durable subscription or until they have expired. A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method. This method may only be used with unshared durable subscriptions. Any durable subscription created using this method will be unshared. This means that only one active (i.e. not closed) consumer on the subscription may exist at a time. The term "consumer" here means a TopicSubscriber, MessageConsumer or JMSConsumer object in any client. An unshared durable subscription is identified by a name specified by the client and by the client identifier, which must be set. An application which subsequently wishes to create a consumer on that unshared durable subscription must use the same client identifier. If an unshared durable subscription already exists with the same name and client identifier, and the same topic, message selector and noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this method creates a MessageConsumer on the existing durable subscription. If an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active (i.e. not closed) on the durable subscription, then a JMSException will be thrown. If an unshared durable subscription already exists with the same name and client identifier but a different topic, message selector or noLocal value has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this is equivalent to unsubscribing (deleting) the old one and creating a new one. If noLocal is set to true then any messages published to the topic using this session's connection, or any other connection with the same client identifier, will not be added to the durable subscription. A shared durable subscription and an unshared durable subscription may not have the same name and client identifier. If a shared durable subscription already exists with the same name and client identifier then a JMSException is thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId. Such subscriptions would be completely separate. This method is identical to the corresponding createDurableSubscriber method except that it returns a MessageConsumer rather than a TopicSubscriber to represent the consumer. | true |
| true |
| JMS:JAVADOC:1091 | MessageConsumer | javax.jms.Session.createDurableConsumer
(
Topic
, String
, String
, boolean
)
throws
JMSException
| if the session fails to create the unshared durable subscription and MessageConsumer due to some internal error if an unshared durable subscription already exists with the same name and client identifier, and there is a consumer already active if a shared durable subscription already exists with the same name and client identifier | true |
| false |
| JMS:JAVADOC:1092 | MessageConsumer | javax.jms.Session.createDurableConsumer
(
Topic
, String
, String
, boolean
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:1093 | MessageConsumer | javax.jms.Session.createDurableConsumer
(
Topic
, String
, String
, boolean
)
throws
InvalidSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:1098 | void | javax.jms.JMSConsumer.close
| Closes the JMSConsumer. Since a provider may allocate some resources on behalf of a JMSConsumer outside the Java virtual machine, clients should close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough. This call will block until a receive call in progress on this consumer has completed. A blocked receive call returns null when this consumer is closed. If this method is called whilst a message listener is in progress in another thread then it will block until the message listener has completed. This method may be called from a message listener's onMessage method on its own consumer. After this method returns the onMessage method will be allowed to complete normally. This method is the only JMSConsumer method that can be called concurrently. | true |
| true |
| JMS:JAVADOC:1099 | void | javax.jms.JMSConsumer.close
throws
JMSRuntimeException
| if the JMS provider fails to close the consumer due to some internal error. | true |
| false |
| JMS:JAVADOC:1100 | String | javax.jms.JMSConsumer.getMessageSelector
| Gets this JMSConsumer's message selector expression. | true |
| true |
| JMS:JAVADOC:1101 | String | javax.jms.JMSConsumer.getMessageSelector
throws
JMSRuntimeException
| if the JMS provider fails to get the message selector due to some internal error. | true |
| false |
| JMS:JAVADOC:1102 | Message | javax.jms.JMSConsumer.receive
| Receives the next message produced for this JMSConsumer. This call blocks indefinitely until a message is produced or until this JMSConsumer is closed. If this receive is done within a transaction, the JMSConsumer retains the message until the transaction commits. | true |
| true |
| JMS:JAVADOC:1103 | Message | javax.jms.JMSConsumer.receive
throws
JMSRuntimeException
| if the JMS provider fails to receive the next message due to some internal error. | true |
| false |
| JMS:JAVADOC:1104 | Message | javax.jms.JMSConsumer.receive
(
long
)
| Receives the next message that arrives within the specified timeout interval. This call blocks until a message arrives, the timeout expires, or this JMSConsumer is closed. A timeout of zero never expires, and the call blocks indefinitely. | true |
| true |
| JMS:JAVADOC:1105 | Message | javax.jms.JMSConsumer.receive
(
long
)
throws
JMSRuntimeException
| if the JMS provider fails to receive the next message due to some internal error. | true |
| false |
| JMS:JAVADOC:1106 | Message | javax.jms.JMSConsumer.receiveNoWait
| Receives the next message if one is immediately available. | true |
| true |
| JMS:JAVADOC:1107 | Message | javax.jms.JMSConsumer.receiveNoWait
throws
JMSRuntimeException
| if the JMS provider fails to receive the next message due to some internal error. | true |
| false |
| JMS:JAVADOC:1117 | TransactionRolledBackRuntimeException | javax.jms.TransactionRolledBackRuntimeException.TransactionRolledBackRuntimeException
(
String
, String
)
| Constructs a TransactionRolledBackRuntimeException with the specified detail message and error code. | true |
| true |
| JMS:JAVADOC:1118 | TransactionRolledBackRuntimeException | javax.jms.TransactionRolledBackRuntimeException.TransactionRolledBackRuntimeException
(
String
)
| Constructs a TransactionRolledBackRuntimeException with the specified detail message | true |
| true |
| JMS:JAVADOC:1119 | TransactionRolledBackRuntimeException | javax.jms.TransactionRolledBackRuntimeException.TransactionRolledBackRuntimeException
(
String
, String
, Throwable
)
| Constructs a TransactionRolledBackRuntimeException with the specified detail message, error code and cause | true |
| true |
| JMS:JAVADOC:1120 | String | javax.jms.JMSConnectionFactory.value
| Specifies the JNDI lookup name of a javax.jms.ConnectionFactory to be used when injecting a javax.jms.JMSContext object. | true |
| true |
| JMS:JAVADOC:1121 | int | javax.jms.JMSSessionMode.value
| Specifies the session mode used when injecting a javax.jms.JMSContext object. | true |
| true |
| JMS:JAVADOC:1125 | void | javax.jms.Session.run
throws
JMSRuntimeException
| if this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | true |
| false |
| JMS:JAVADOC:1127 | String | javax.jms.JMSPasswordCredential.password
| Specifies the password to be used when injecting a javax.jms.JMSContext object | true |
| true |
| JMS:JAVADOC:1128 | String | javax.jms.JMSPasswordCredential.userName
| Specifies the userName to be used when injecting a javax.jms.JMSContext object | true |
| true |
| JMS:JAVADOC:1129 | boolean | javax.jms.JMSContext.getAutoStart
| Returns whether the underlying connection used by this JMSContext will be started automatically when a consumer is created. | true |
| true |
| JMS:JAVADOC:1138 | void | javax.jms.JMSContext.setAutoStart
(
boolean
)
| Specifies whether the underlying connection used by this JMSContext will be started automatically when a consumer is created. This is the default behaviour, and it may be disabled by calling this method with a value of false. This method does not itself either start or stop the connection. This method must not be used if the JMSContext is container-managed (injected). Doing so will cause a IllegalStateRuntimeException to be thrown. | true |
| true |
| JMS:JAVADOC:1145 | MessageListener | javax.jms.JMSConsumer.getMessageListener
| Gets the JMSConsumer's MessageListener. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSRuntimeException to be thrown though this is not guaranteed. | true |
| true |
| JMS:JAVADOC:1146 | MessageListener | javax.jms.JMSConsumer.getMessageListener
throws
JMSRuntimeException
| if the JMS provider fails to get the MessageListener for one of the following reasons: an internal error has occurred or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | true |
| false |
| JMS:JAVADOC:1149 | void | javax.jms.JMSConsumer.setMessageListener
(
MessageListener
)
| Sets the JMSConsumer's MessageListener. Setting the MessageListener to null is the equivalent of unsetting the MessageListener for the JMSConsumer. The effect of calling this method while messages are being consumed by an existing listener or the JMSConsumer is being used to consume messages synchronously is undefined. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSRuntimeException to be thrown though this is not guaranteed. | true |
| true |
| JMS:JAVADOC:1150 | void | javax.jms.JMSConsumer.setMessageListener
(
MessageListener
)
throws
JMSRuntimeException
| if the JMS provider fails to set the JMSConsumer's MessageListener for one of the following reasons: an internal error has occurred or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | true |
| false |
| JMS:JAVADOC:1151 | JMSConsumer | javax.jms.JMSContext.createSharedConsumer
(
Topic
, String
)
| 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. This method creates the non-durable subscription without a message selector. If a shared non-durable subscription already exists with the same name and client identifier (if set), and the same topic and message selector has been specified, then this method creates a JMSConsumer on the existing subscription. A non-durable shared subscription is used by a client which needs to be able to share the work of receiving messages from a topic subscription amongst multiple consumers. A non-durable shared subscription may therefore have more than one consumer. Each message from the subscription will be delivered to only one of the consumers on that subscription. Such a subscription is not persisted and will be deleted (together with any undelivered messages associated with it) when there are no consumers on it. The term "consumer" here means a MessageConsumer or JMSConsumer object in any client. A shared non-durable subscription is identified by a name specified by the client and by the client identifier (which may be unset). An application which subsequently wishes to create a consumer on that shared non-durable subscription must use the same client identifier. If a shared non-durable subscription already exists with the same name and client identifier (if set) but a different topic or message selector value has been specified, and there is a consumer already active (i.e. not closed) on the subscription, then a JMSRuntimeException will be thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId (which may be unset). Such subscriptions would be completely separate. | true |
| true |
| JMS:JAVADOC:1152 | JMSConsumer | javax.jms.JMSContext.createSharedConsumer
(
Topic
, String
)
throws
JMSRuntimeException
| if the session fails to create the shared non-durable subscription and JMSContext due to some internal error. | true |
| true |
| JMS:JAVADOC:1153 | JMSConsumer | javax.jms.JMSContext.createSharedConsumer
(
Topic
, String
)
throws
InvalidDestinationRuntimeException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:1154 | JMSConsumer | javax.jms.JMSContext.createSharedConsumer
(
Topic
, String
)
throws
InvalidSelectorRuntimeException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:1155 | JMSConsumer | javax.jms.JMSContext.createSharedConsumer
(
Topic
, String
, String
)
| 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. If a shared non-durable subscription already exists with the same name and client identifier (if set), and the same topic and message selector has been specified, then this method creates a JMSConsumer on the existing subscription. A non-durable shared subscription is used by a client which needs to be able to share the work of receiving messages from a topic subscription amongst multiple consumers. A non-durable shared subscription may therefore have more than one consumer. Each message from the subscription will be delivered to only one of the consumers on that subscription. Such a subscription is not persisted and will be deleted (together with any undelivered messages associated with it) when there are no consumers on it. The term "consumer" here means a MessageConsumer or JMSConsumer object in any client. A shared non-durable subscription is identified by a name specified by the client and by the client identifier (which may be unset). An application which subsequently wishes to create a consumer on that shared non-durable subscription must use the same client identifier. If a shared non-durable subscription already exists with the same name and client identifier (if set) but a different topic or message selector has been specified, and there is a consumer already active (i.e. not closed) on the subscription, then a JMSRuntimeException will be thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId (which may be unset). Such subscriptions would be completely separate. | true |
| true |
| JMS:JAVADOC:1156 | JMSConsumer | javax.jms.JMSContext.createSharedConsumer
(
Topic
, String
, String
)
throws
JMSRuntimeException
| if the session fails to create the shared non-durable subscription and JMSConsumer due to some internal error. | true |
| true |
| JMS:JAVADOC:1157 | JMSConsumer | javax.jms.JMSContext.createSharedConsumer
(
Topic
, String
, String
)
throws
InvalidDestinationRuntimeException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:1158 | JMSConsumer | javax.jms.JMSContext.createSharedConsumer
(
Topic
, String
, String
)
throws
InvalidSelectorRuntimeException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:1160 | JMSConsumer | javax.jms.JMSContext.createSharedDurableConsumer
(
Topic
, String
, String
)
throws
JMSRuntimeException
| if the session fails to create the shared durable subscription and JMSConsumer due to some internal error if a shared durable subscription already exists with the same name and client identifier, but a different topic, or message selector, and there is a consumer already active if an unshared durable subscription already exists with the same name and client identifier | true |
| true |
| JMS:JAVADOC:1161 | JMSConsumer | javax.jms.JMSContext.createSharedDurableConsumer
(
Topic
, String
, String
)
throws
InvalidDestinationRuntimeException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:1162 | JMSConsumer | javax.jms.JMSContext.createSharedDurableConsumer
(
Topic
, String
, String
)
throws
InvalidSelectorRuntimeException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:1163 | MessageConsumer | javax.jms.Session.createSharedConsumer
(
Topic
, String
)
| 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. This method creates the non-durable subscription without a message selector. If a shared non-durable subscription already exists with the same name and client identifier (if set), and the same topic and message selector value has been specified, then this method creates a MessageConsumer on the existing subscription. A non-durable shared subscription is used by a client which needs to be able to share the work of receiving messages from a topic subscription amongst multiple consumers. A non-durable shared subscription may therefore have more than one consumer. Each message from the subscription will be delivered to only one of the consumers on that subscription. Such a subscription is not persisted and will be deleted (together with any undelivered messages associated with it) when there are no consumers on it. The term "consumer" here means a MessageConsumer or JMSConsumer object in any client. A shared non-durable subscription is identified by a name specified by the client and by the client identifier (which may be unset). An application which subsequently wishes to create a consumer on that shared non-durable subscription must use the same client identifier. If a shared non-durable subscription already exists with the same name and client identifier (if set) but a different topic or message selector has been specified, and there is a consumer already active (i.e. not closed) on the subscription, then a JMSException will be thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId (which may be unset). Such subscriptions would be completely separate. | true |
| true |
| JMS:JAVADOC:1164 | MessageConsumer | javax.jms.Session.createSharedConsumer
(
Topic
, String
)
throws
JMSException
| if the session fails to create the shared non-durable subscription and MessageConsumer due to some internal error. | true |
| true |
| JMS:JAVADOC:1165 | MessageConsumer | javax.jms.Session.createSharedConsumer
(
Topic
, String
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:1166 | MessageConsumer | javax.jms.Session.createSharedConsumer
(
Topic
, String
)
throws
InvalidSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:1167 | MessageConsumer | javax.jms.Session.createSharedConsumer
(
Topic
, String
, String
)
| 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. If a shared non-durable subscription already exists with the same name and client identifier (if set), and the same topic and message selector has been specified, then this method creates a MessageConsumer on the existing subscription. A non-durable shared subscription is used by a client which needs to be able to share the work of receiving messages from a topic subscription amongst multiple consumers. A non-durable shared subscription may therefore have more than one consumer. Each message from the subscription will be delivered to only one of the consumers on that subscription. Such a subscription is not persisted and will be deleted (together with any undelivered messages associated with it) when there are no consumers on it. The term "consumer" here means a MessageConsumer or JMSConsumer object in any client. A shared non-durable subscription is identified by a name specified by the client and by the client identifier (which may be unset). An application which subsequently wishes to create a consumer on that shared non-durable subscription must use the same client identifier. If a shared non-durable subscription already exists with the same name and client identifier (if set) but a different topic or message selector has been specified, and there is a consumer already active (i.e. not closed) on the subscription, then a JMSException will be thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId (which may be unset). Such subscriptions would be completely separate. | true |
| true |
| JMS:JAVADOC:1168 | MessageConsumer | javax.jms.Session.createSharedConsumer
(
Topic
, String
, String
)
throws
JMSException
| if the session fails to create the shared non-durable subscription and MessageConsumer due to some internal error. | true |
| true |
| JMS:JAVADOC:1169 | MessageConsumer | javax.jms.Session.createSharedConsumer
(
Topic
, String
, String
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:1170 | MessageConsumer | javax.jms.Session.createSharedConsumer
(
Topic
, String
, String
)
throws
InvalidSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:1175 | void | javax.jms.JMSContext.acknowledge
throws
JMSRuntimeException
| if the JMS provider fails to acknowledge the messages due to some internal error | true |
| false |
| JMS:JAVADOC:1176 | void | javax.jms.JMSContext.close
throws
JMSRuntimeException
| if the JMS provider fails to close the JMSContext due to some internal error. For example, a failure to release resources or to close a socket connection can cause this exception to be thrown. | true |
| false |
| JMS:JAVADOC:1177 | JMSProducer | javax.jms.JMSContext.createProducer
| Creates a new JMSProducer object which can be used to configure and send messages | true |
| true |
| JMS:JAVADOC:1180 | JMSProducer | javax.jms.JMSProducer.clearProperties
| Clears any message properties set on this JMSProducer | true |
| true |
| JMS:JAVADOC:1181 | JMSProducer | javax.jms.JMSProducer.clearProperties
throws
JMSRuntimeException
| if the JMS provider fails to clear the message properties due to some internal error. | true |
| false |
| JMS:JAVADOC:1182 | CompletionListener | javax.jms.JMSProducer.getAsync
| If subsequent calls to send on this JMSProducer object have been configured to be asynchronous then this method returns the CompletionListener that has previously been configured. If subsequent calls to send have been configured to be synchronous then this method returns null. | true |
| true |
| JMS:JAVADOC:1183 | CompletionListener | javax.jms.JMSProducer.getAsync
throws
JMSRuntimeException
| if the JMS provider fails to get the required information due to some internal error. | true |
| false |
| JMS:JAVADOC:1184 | boolean | javax.jms.JMSProducer.getBooleanProperty
(
String
)
| Returns the message property with the specified name that has been set on this JMSProducer, converted to a boolean. | true |
| true |
| JMS:JAVADOC:1185 | boolean | javax.jms.JMSProducer.getBooleanProperty
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:1186 | boolean | javax.jms.JMSProducer.getBooleanProperty
(
String
)
throws
MessageFormatRuntimeException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:1187 | byte | javax.jms.JMSProducer.getByteProperty
(
String
)
| Returns the message property with the specified name that has been set on this JMSProducer, converted to a String. | true |
| true |
| JMS:JAVADOC:1188 | byte | javax.jms.JMSProducer.getByteProperty
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:1189 | byte | javax.jms.JMSProducer.getByteProperty
(
String
)
throws
MessageFormatRuntimeException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:1190 | long | javax.jms.JMSProducer.getDeliveryDelay
| Gets the minimum length of time in milliseconds that must elapse after a message is sent before the JMS provider may deliver the message to a consumer. | true |
| true |
| JMS:JAVADOC:1191 | long | javax.jms.JMSProducer.getDeliveryDelay
throws
JMSRuntimeException
| if the JMS provider fails to get the delivery delay due to some internal error. | true |
| false |
| JMS:JAVADOC:1192 | int | javax.jms.JMSProducer.getDeliveryMode
| Returns the delivery mode of messages that are sent using this JMSProducer | true |
| true |
| JMS:JAVADOC:1193 | int | javax.jms.JMSProducer.getDeliveryMode
throws
JMSRuntimeException
| if the JMS provider fails to get the delivery mode due to some internal error. | true |
| false |
| JMS:JAVADOC:1194 | boolean | javax.jms.JMSProducer.getDisableMessageID
| Gets an indication of whether message IDs are disabled. | true |
| true |
| JMS:JAVADOC:1195 | boolean | javax.jms.JMSProducer.getDisableMessageID
throws
JMSRuntimeException
| if the JMS provider fails to determine if message IDs are disabled due to some internal error. | true |
| false |
| JMS:JAVADOC:1196 | boolean | javax.jms.JMSProducer.getDisableMessageTimestamp
| Gets an indication of whether message timestamps are disabled. | true |
| true |
| JMS:JAVADOC:1197 | boolean | javax.jms.JMSProducer.getDisableMessageTimestamp
throws
JMSRuntimeException
| if the JMS provider fails to determine if timestamps are disabled due to some internal error. | true |
| false |
| JMS:JAVADOC:1198 | double | javax.jms.JMSProducer.getDoubleProperty
(
String
)
| Returns the message property with the specified name that has been set on this JMSProducer, converted to a double. | true |
| true |
| JMS:JAVADOC:1199 | double | javax.jms.JMSProducer.getDoubleProperty
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:1200 | double | javax.jms.JMSProducer.getDoubleProperty
(
String
)
throws
MessageFormatRuntimeException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:1201 | float | javax.jms.JMSProducer.getFloatProperty
(
String
)
| Returns the message property with the specified name that has been set on this JMSProducer, converted to a float. | true |
| true |
| JMS:JAVADOC:1202 | float | javax.jms.JMSProducer.getFloatProperty
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:1203 | float | javax.jms.JMSProducer.getFloatProperty
(
String
)
throws
MessageFormatRuntimeException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:1204 | int | javax.jms.JMSProducer.getIntProperty
(
String
)
| Returns the message property with the specified name that has been set on this JMSProducer, converted to a int. | true |
| true |
| JMS:JAVADOC:1205 | int | javax.jms.JMSProducer.getIntProperty
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:1206 | int | javax.jms.JMSProducer.getIntProperty
(
String
)
throws
MessageFormatRuntimeException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:1207 | String | javax.jms.JMSProducer.getJMSCorrelationID
| Returns the JMSCorrelationID header value that has been set on this JMSProducer, as a String. This method is used to return correlation ID values that are either provider-specific message IDs or application-specific String values. | true |
| true |
| JMS:JAVADOC:1208 | String | javax.jms.JMSProducer.getJMSCorrelationID
throws
JMSRuntimeException
| if the JMS provider fails to get the correlation ID due to some internal error. | true |
| false |
| JMS:JAVADOC:1209 | byte[] | javax.jms.JMSProducer.getJMSCorrelationIDAsBytes
| Returns the JMSCorrelationID header value that has been set on this JMSProducer, as an array of bytes. The use of a byte[] value for JMSCorrelationID is non-portable. | true |
| true |
| JMS:JAVADOC:1210 | byte[] | javax.jms.JMSProducer.getJMSCorrelationIDAsBytes
throws
JMSRuntimeException
| if the JMS provider fails to get the correlation ID due to some internal error. | true |
| false |
| JMS:JAVADOC:1211 | Destination | javax.jms.JMSProducer.getJMSReplyTo
| Returns the JMSReplyTo header value that has been set on this JMSProducer. | true |
| true |
| JMS:JAVADOC:1212 | Destination | javax.jms.JMSProducer.getJMSReplyTo
throws
JMSRuntimeException
| if the JMS provider fails to get the JMSReplyTo destination due to some internal error. | true |
| false |
| JMS:JAVADOC:1213 | String | javax.jms.JMSProducer.getJMSType
| Returns the JMSType header value that has been set on this JMSProducer. | true |
| true |
| JMS:JAVADOC:1214 | String | javax.jms.JMSProducer.getJMSType
throws
JMSRuntimeException
| if the JMS provider fails to get the message type due to some internal error. | true |
| false |
| JMS:JAVADOC:1215 | long | javax.jms.JMSProducer.getLongProperty
(
String
)
| Returns the message property with the specified name that has been set on this JMSProducer, converted to a long. | true |
| true |
| JMS:JAVADOC:1216 | long | javax.jms.JMSProducer.getLongProperty
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:1217 | long | javax.jms.JMSProducer.getLongProperty
(
String
)
throws
MessageFormatRuntimeException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:1218 | Object | javax.jms.JMSProducer.getObjectProperty
(
String
)
| Returns the message property with the specified name that has been set on this JMSProducer, converted to objectified format. This method can be used to return, in objectified format, an object that has been stored as a property in the message with the equivalent setObjectProperty method call, or its equivalent primitive settypeProperty method. | true |
| true |
| JMS:JAVADOC:1219 | Object | javax.jms.JMSProducer.getObjectProperty
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:1220 | int | javax.jms.JMSProducer.getPriority
| Return the priority of messages that are sent using this JMSProducer | true |
| true |
| JMS:JAVADOC:1221 | int | javax.jms.JMSProducer.getPriority
throws
JMSRuntimeException
| if the JMS provider fails to get the priority due to some internal error. | true |
| false |
| JMS:JAVADOC:1222 | Set | javax.jms.JMSProducer.getPropertyNames
| Returns an unmodifiable Set view of the names of all the message properties that have been set on this JMSProducer. Note that JMS standard header fields are not considered properties and are not returned in this Set. The set is backed by the JMSProducer, so changes to the map are reflected in the set. However the set may not be modified. Attempts to modify the returned collection, whether directly or via its iterator, will result in an java.lang.UnsupportedOperationException. Its behaviour matches that defined in the java.util.Collections method unmodifiableSet. | true |
| true |
| JMS:JAVADOC:1223 | Set | javax.jms.JMSProducer.getPropertyNames
throws
JMSRuntimeException
| if the JMS provider fails to get the property names due to some internal error. | true |
| false |
| JMS:JAVADOC:1224 | short | javax.jms.JMSProducer.getShortProperty
(
String
)
| Returns the message property with the specified name that has been set on this JMSProducer, converted to a short. | true |
| true |
| JMS:JAVADOC:1225 | short | javax.jms.JMSProducer.getShortProperty
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:1226 | short | javax.jms.JMSProducer.getShortProperty
(
String
)
throws
MessageFormatRuntimeException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:1227 | String | javax.jms.JMSProducer.getStringProperty
(
String
)
| Returns the message property with the specified name that has been set on this JMSProducer, converted to a String. | true |
| true |
| JMS:JAVADOC:1228 | String | javax.jms.JMSProducer.getStringProperty
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to get the property value due to some internal error. | true |
| false |
| JMS:JAVADOC:1229 | String | javax.jms.JMSProducer.getStringProperty
(
String
)
throws
MessageFormatRuntimeException
| if this type conversion is invalid. | true |
| true |
| JMS:JAVADOC:1230 | long | javax.jms.JMSProducer.getTimeToLive
| Returns the time to live of messages that are sent using this JMSProducer. | true |
| true |
| JMS:JAVADOC:1231 | long | javax.jms.JMSProducer.getTimeToLive
throws
JMSRuntimeException
| if the JMS provider fails to get the time to live due to some internal error. | true |
| false |
| JMS:JAVADOC:1232 | boolean | javax.jms.JMSProducer.propertyExists
(
String
)
| Indicates whether a message property with the specified name has been set on this JMSProducer | true |
| true |
| JMS:JAVADOC:1233 | boolean | javax.jms.JMSProducer.propertyExists
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to determine whether the property exists due to some internal error. | true |
| false |
| JMS:JAVADOC:1234 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Message
)
| Sends a message to the specified destination, using any send options, message properties and message headers that have been defined on this JMSProducer. | true |
| true |
| JMS:JAVADOC:1235 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Message
)
throws
JMSRuntimeException
| if the JMS provider fails to send the message due to some internal error. | true |
| true |
| JMS:JAVADOC:1236 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Message
)
throws
MessageFormatRuntimeException
| if an invalid message is specified. | true |
| true |
| JMS:JAVADOC:1237 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Message
)
throws
InvalidDestinationRuntimeException
| if a client uses this method with an invalid destination. | true |
| true |
| JMS:JAVADOC:1238 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Message
)
throws
MessageNotWriteableRuntimeException
| if this JMSProducer has been configured to set a message property, but the message's properties are read-only | true |
| true |
| JMS:JAVADOC:1239 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, String
)
| Send a TextMessage with the specified body to the specified destination, using any send options, message properties and message headers that have been defined on this JMSProducer. | true |
| true |
| JMS:JAVADOC:1240 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, String
)
throws
JMSRuntimeException
| if the JMS provider fails to send the message due to some internal error. | true |
| false |
| JMS:JAVADOC:1241 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, String
)
throws
MessageFormatRuntimeException
| if an invalid message is specified. | true |
| true |
| JMS:JAVADOC:1242 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, String
)
throws
InvalidDestinationRuntimeException
| if a client uses this method with an invalid destination. | true |
| true |
| JMS:JAVADOC:1243 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Map
)
| Send a MapMessage with the specified body to the specified destination, using any send options, message properties and message headers that have been defined on this JMSProducer. | true |
| true |
| JMS:JAVADOC:1244 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Map
)
throws
JMSRuntimeException
| if the JMS provider fails to send the message due to some internal error. | true |
| false |
| JMS:JAVADOC:1245 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Map
)
throws
MessageFormatRuntimeException
| if an invalid message is specified. | true |
| true |
| JMS:JAVADOC:1246 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Map
)
throws
InvalidDestinationRuntimeException
| if a client uses this method with an invalid destination. | true |
| true |
| JMS:JAVADOC:1247 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, byte[]
)
| Send a BytesMessage with the specified body to the specified destination, using any send options, message properties and message headers that have been defined on this JMSProducer. | true |
| true |
| JMS:JAVADOC:1248 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, byte[]
)
throws
JMSRuntimeException
| if the JMS provider fails to send the message due to some internal error. | true |
| false |
| JMS:JAVADOC:1249 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, byte[]
)
throws
MessageFormatRuntimeException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:1250 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, byte[]
)
throws
InvalidDestinationRuntimeException
| if a client uses this method with an invalid destination. | true |
| true |
| JMS:JAVADOC:1251 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Serializable
)
| Send an ObjectMessage with the specified body to the specified destination, using any send options, message properties and message headers that have been defined on this JMSProducer. | true |
| true |
| JMS:JAVADOC:1252 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Serializable
)
throws
JMSRuntimeException
| if JMS provider fails to send the message due to some internal error. | true |
| false |
| JMS:JAVADOC:1253 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Serializable
)
throws
MessageFormatRuntimeException
| if an invalid message is specified. | true |
| false |
| JMS:JAVADOC:1254 | JMSProducer | javax.jms.JMSProducer.send
(
Destination
, Serializable
)
throws
InvalidDestinationRuntimeException
| if a client uses this method with an invalid destination. | true |
| true |
| JMS:JAVADOC:1255 | JMSProducer | javax.jms.JMSProducer.setAsync
(
CompletionListener
)
| Specifies whether subsequent calls to send on this JMSProducer object should be synchronous or asynchronous. If the specified CompletionListener is not null then subsequent calls to send will be asynchronous. If the specified CompletionListener is null then subsequent calls to send will be synchronous. Calls to send are synchronous by default. If a call to send is asynchronous then part of the work involved in sending the message will be performed in a separate thread and the specified CompletionListener will be notified when the operation has completed. When the message has been successfully sent the JMS provider invokes the callback method onCompletion on the CompletionListener object. Only when that callback has been invoked can the application be sure that the message has been successfully sent with the same degree of confidence as if the send had been synchronous. An application which requires this degree of confidence must therefore wait for the callback to be invoked before continuing. The following information is intended to give an indication of how an asynchronous send would typically be implemented. In some JMS providers, a normal synchronous send involves sending the message to a remote JMS server and then waiting for an acknowledgement to be received before returning. It is expected that such a provider would implement an asynchronous send by sending the message to the remote JMS server and then returning without waiting for an acknowledgement. When the acknowledgement is received, the JMS provider would notify the application by invoking the onCompletion method on the application-specified CompletionListener object. If for some reason the acknowledgement is not received the JMS provider would notify the application by invoking the CompletionListener's onException method. In those cases where the JMS specification permits a lower level of reliability, a normal synchronous send might not wait for an acknowledgement. In that case it is expected that an asynchronous send would be similar to a synchronous send: the JMS provider would send the message to the remote JMS server and then return without waiting for an acknowledgement. However the JMS provider would still notify the application that the send had completed by invoking the onCompletion method on the application-specified CompletionListener object. It is up to the JMS provider to decide exactly what is performed in the calling thread and what, if anything, is performed asynchronously, so long as it satisfies the requirements given below: Quality of service: After the send operation has completed successfully, which means that the message has been successfully sent with the same degree of confidence as if a normal synchronous send had been performed, the JMS provider must invoke the CompletionListener's onCompletion method. The CompletionListener must not be invoked earlier than this. Exceptions: If an exception is encountered during the call to the send method then an appropriate exception should be thrown in the thread that is calling the send method. In this case the JMS provider must not invoke the CompletionListener's onCompletion or onException method. If an exception is encountered which cannot be thrown in the thread that is calling the send method then the JMS provider must call the CompletionListener's onException method. In both cases if an exception occurs it is undefined whether or not the message was successfully sent. Message order: If the same JMSContext is used to send multiple messages then JMS message ordering requirements must be satisfied. This applies even if a combination of synchronous and asynchronous sends has been performed. The application is not required to wait for an asynchronous send to complete before sending the next message. Close, commit or rollback: If the close method is called on the JMSContext then the JMS provider must block until any incomplete send operations have been completed and all CompletionListener callbacks have returned before closing the object and returning. If the session is transacted (uses a local transaction) then when the JMSContext's commit or rollback method is called the JMS provider must block until any incomplete send operations have been completed and all CompletionListener callbacks have returned before performing the commit or rollback. Incomplete sends should be allowed to complete normally unless an error occurs. A CompletionListener callback method must not call close, commit or rollback on its own JMSContext. Doing so will cause the close, commit or rollback to throw an IllegalStateRuntimeException. Restrictions on usage in Java EE This method must not be used in a Java EE EJB or web container. Doing so may cause a JMSRuntimeException to be thrown though this is not guaranteed. Message headers JMS defines a number of message header fields and message properties which must be set by the "JMS provider on send". If the send is asynchronous these fields and properties may be accessed on the sending client only after the CompletionListener has been invoked. If the CompletionListener's onException method is called then the state of these message header fields and properties is undefined. Restrictions on threading: Applications that perform an asynchronous send must confirm to the threading restrictions defined in JMS. This means that the session may be used by only one thread at a time. Setting a CompletionListener does not cause the session to be dedicated to the thread of control which calls the CompletionListener. The application thread may therefore continue to use the session after performing an asynchronous send. However the CompletionListener's callback methods must not use the session if an application thread might be using the session at the same time. Use of the CompletionListener by the JMS provider: A session will only invoke one CompletionListener callback method at a time. For a given JMSContext, callbacks (both onCompletion and onException) will be performed in the same order as the corresponding calls to the send method. A JMS provider must not invoke the CompletionListener from the thread that is calling the send method. Restrictions on the use of the Message object: Applications which perform an asynchronous send must take account of the restriction that a Message object is designed to be accessed by one logical thread of control at a time and does not support concurrent use. After the send method has returned, the application must not attempt to read the headers, properties or body of the Message object until the CompletionListener's onCompletion or onException method has been called. This is because the JMS provider may be modifying the Message object in another thread during this time. The JMS provider may throw an JMSException if the application attempts to access or modify the Message object after the send method has returned and before the CompletionListener has been invoked. If the JMS provider does not throw an exception then the behaviour is undefined. | true |
| true |
| JMS:JAVADOC:1256 | JMSProducer | javax.jms.JMSProducer.setAsync
(
CompletionListener
)
throws
JMSRuntimeException
| if an internal error occurs | true |
| false |
| JMS:JAVADOC:1257 | JMSProducer | javax.jms.JMSProducer.setDeliveryDelay
(
long
)
| Sets the minimum length of time in milliseconds that must elapse after a message is sent before the JMS provider may deliver the message to a consumer. For transacted sends, this time starts when the client sends the message, not when the transaction is committed. deliveryDelay is set to zero by default. | true |
| true |
| JMS:JAVADOC:1258 | JMSProducer | javax.jms.JMSProducer.setDeliveryDelay
(
long
)
throws
JMSRuntimeException
| if the JMS provider fails to set the delivery delay due to some internal error. | true |
| false |
| JMS:JAVADOC:1259 | JMSProducer | javax.jms.JMSProducer.setDeliveryMode
(
int
)
| Specifies the delivery mode of messages that are sent using this JMSProducer Delivery mode is set to PERSISTENT by default. | true |
| true |
| JMS:JAVADOC:1260 | JMSProducer | javax.jms.JMSProducer.setDeliveryMode
(
int
)
throws
JMSRuntimeException
| if the JMS provider fails to set the delivery mode due to some internal error. | true |
| true |
| JMS:JAVADOC:1261 | JMSProducer | javax.jms.JMSProducer.setDisableMessageID
(
boolean
)
| Specifies whether message IDs may be disabled for messages that are sent using this JMSProducer Since message IDs take some effort to create and increase a message's size, some JMS providers may be able to optimise message overhead if they are given a hint that the message ID is not used by an application. By calling this method, a JMS application enables this potential optimisation for all messages sent using this JMSProducer. If the JMS provider accepts this hint, these messages must have the message ID set to null; if the provider ignores the hint, the message ID must be set to its normal unique value. Message IDs are enabled by default. | true |
| true |
| JMS:JAVADOC:1262 | JMSProducer | javax.jms.JMSProducer.setDisableMessageID
(
boolean
)
throws
JMSRuntimeException
| if the JMS provider fails to set message ID to disabled due to some internal error. | true |
| false |
| JMS:JAVADOC:1263 | JMSProducer | javax.jms.JMSProducer.setDisableMessageTimestamp
(
boolean
)
| Specifies whether message timestamps may be disabled for messages that are sent using this JMSProducer. Since timestamps take some effort to create and increase a message's size, some JMS providers may be able to optimise message overhead if they are given a hint that the timestamp is not used by an application. By calling this method, a JMS application enables this potential optimisation for all messages sent using this JMSProducer. If the JMS provider accepts this hint, these messages must have the timestamp set to zero; if the provider ignores the hint, the timestamp must be set to its normal value. Message timestamps are enabled by default. | true |
| true |
| JMS:JAVADOC:1264 | JMSProducer | javax.jms.JMSProducer.setDisableMessageTimestamp
(
boolean
)
throws
JMSRuntimeException
| if the JMS provider fails to set timestamps to disabled due to some internal error. | true |
| false |
| JMS:JAVADOC:1265 | JMSProducer | javax.jms.JMSProducer.setJMSCorrelationID
(
String
)
| Specifies that messages sent using this JMSProducer will have their JMSCorrelationID header value set to the specified correlation ID, where correlation ID is specified as a String. This will override any JMSCorrelationID header value that is already set on the message being sent. A client can use the JMSCorrelationID header field to link one message with another. A typical use is to link a response message with its request message. JMSCorrelationID can hold one of the following: A provider-specific message ID An application-specific String A provider-native byte[] value Since each message sent by a JMS provider is assigned a message ID value, it is convenient to link messages via message ID. All message ID values must start with the 'ID:' prefix. In some cases, an application (made up of several clients) needs to use an application-specific value for linking messages. For instance, an application may use JMSCorrelationID to hold a value referencing some external information. Application-specified values must not start with the 'ID:' prefix; this is reserved for provider-generated message ID values. If a provider supports the native concept of correlation ID, a JMS client may need to assign specific JMSCorrelationID values to match those expected by clients that do not use the JMS API. A byte[] value is used for this purpose. JMS providers without native correlation ID values are not required to support byte[] values. The use of a byte[] value for JMSCorrelationID is non-portable. | true |
| true |
| JMS:JAVADOC:1266 | JMSProducer | javax.jms.JMSProducer.setJMSCorrelationID
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to set the correlation ID due to some internal error. | true |
| false |
| JMS:JAVADOC:1267 | JMSProducer | javax.jms.JMSProducer.setJMSCorrelationIDAsBytes
(
byte[]
)
| Specifies that messages sent using this JMSProducer will have their JMSCorrelationID header value set to the specified correlation ID, where correlation ID is specified as an array of bytes. This will override any JMSCorrelationID header value that is already set on the message being sent. The array is copied before the method returns, so future modifications to the array will not alter the value in this JMSProducer. If a provider supports the native concept of correlation ID, a JMS client may need to assign specific JMSCorrelationID values to match those expected by native messaging clients. JMS providers without native correlation ID values are not required to support this method and its corresponding get method; their implementation may throw a java.lang.UnsupportedOperationException. The use of a byte[] value for JMSCorrelationID is non-portable. | true |
| true |
| JMS:JAVADOC:1268 | JMSProducer | javax.jms.JMSProducer.setJMSCorrelationIDAsBytes
(
byte[]
)
throws
JMSRuntimeException
| if the JMS provider fails to set the correlation ID due to some internal error. | true |
| false |
| JMS:JAVADOC:1269 | JMSProducer | javax.jms.JMSProducer.setJMSReplyTo
(
Destination
)
| Specifies that messages sent using this JMSProducer will have their JMSReplyTo header value set to the specified Destination object. This will override any JMSReplyTo header value that is already set on the message being sent. The JMSReplyTo header field contains the destination where a reply to the current message should be sent. If it is null, no reply is expected. The destination may be either a Queue object or a Topic object. Messages sent with a null JMSReplyTo value may be a notification of some event, or they may just be some data the sender thinks is of interest. Messages with a JMSReplyTo value typically expect a response. A response is optional; it is up to the client to decide. These messages are called requests. A message sent in response to a request is called a reply. In some cases a client may wish to match a request it sent earlier with a reply it has just received. The client can use the JMSCorrelationID header field for this purpose. | true |
| true |
| JMS:JAVADOC:1270 | JMSProducer | javax.jms.JMSProducer.setJMSReplyTo
(
Destination
)
throws
JMSRuntimeException
| if the JMS provider fails to set the JMSReplyTo destination due to some internal error. | true |
| false |
| JMS:JAVADOC:1271 | JMSProducer | javax.jms.JMSProducer.setJMSType
(
String
)
| Specifies that messages sent using this JMSProducer will have their JMSType header value set to the specified message type. This will override any JMSType header value that is already set on the message being sent. Some JMS providers use a message repository that contains the definitions of messages sent by applications. The JMSType header field may reference a message's definition in the provider's repository. The JMS API does not define a standard message definition repository, nor does it define a naming policy for the definitions it contains. Some messaging systems require that a message type definition for each application message be created and that each message specify its type. In order to work with such JMS providers, JMS clients should assign a value to JMSType, whether the application makes use of it or not. This ensures that the field is properly set for those providers that require it. To ensure portability, JMS clients should use symbolic values for JMSType that can be configured at installation time to the values defined in the current provider's message repository. If string literals are used, they may not be valid type names for some JMS providers. | true |
| true |
| JMS:JAVADOC:1272 | JMSProducer | javax.jms.JMSProducer.setJMSType
(
String
)
throws
JMSRuntimeException
| if the JMS provider fails to set the message type due to some internal error. | true |
| false |
| JMS:JAVADOC:1273 | JMSProducer | javax.jms.JMSProducer.setPriority
(
int
)
| Specifies the priority of messages that are sent using this JMSProducer The JMS API defines ten levels of priority value, with 0 as the lowest priority and 9 as the highest. Clients should consider priorities 0-4 as gradations of normal priority and priorities 5-9 as gradations of expedited priority. Priority is set to 4 by default. | true |
| true |
| JMS:JAVADOC:1274 | JMSProducer | javax.jms.JMSProducer.setPriority
(
int
)
throws
JMSRuntimeException
| if the JMS provider fails to set the priority due to some internal error. | true |
| true |
| JMS:JAVADOC:1275 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, boolean
)
| Specifies that messages sent using this JMSProducer will have the specified property set to the specified boolean value. This will replace any property of the same name that is already set on the message being sent. | true |
| true |
| JMS:JAVADOC:1276 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, boolean
)
throws
JMSRuntimeException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:1277 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, boolean
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:1278 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, byte
)
| Specifies that messages sent using this JMSProducer will have the specified property set to the specified byte value. This will replace any property of the same name that is already set on the message being sent. | true |
| true |
| JMS:JAVADOC:1279 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, byte
)
throws
JMSRuntimeException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:1280 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, byte
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:1281 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, short
)
| Specifies that messages sent using this JMSProducer will have the specified property set to the specified short value. This will replace any property of the same name that is already set on the message being sent. | true |
| true |
| JMS:JAVADOC:1282 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, short
)
throws
JMSRuntimeException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:1283 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, short
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:1284 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, int
)
| Specifies that messages sent using this JMSProducer will have the specified property set to the specified int value. This will replace any property of the same name that is already set on the message being sent. | true |
| true |
| JMS:JAVADOC:1285 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, int
)
throws
JMSRuntimeException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:1286 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, int
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:1287 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, long
)
| Specifies that messages sent using this JMSProducer will have the specified property set to the specified long value. This will replace any property of the same name that is already set on the message being sent. | true |
| true |
| JMS:JAVADOC:1288 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, long
)
throws
JMSRuntimeException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:1289 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, long
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:1290 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, float
)
| Specifies that messages sent using this JMSProducer will have the specified property set to the specified float value. This will replace any property of the same name that is already set on the message being sent. | true |
| true |
| JMS:JAVADOC:1291 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, float
)
throws
JMSRuntimeException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:1292 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, float
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:1293 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, double
)
| Specifies that messages sent using this JMSProducer will have the specified property set to the specified double value. This will replace any property of the same name that is already set on the message being sent. | true |
| true |
| JMS:JAVADOC:1294 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, double
)
throws
JMSRuntimeException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:1295 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, double
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:1296 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, String
)
| Specifies that messages sent using this JMSProducer will have the specified property set to the specified String value. This will replace any property of the same name that is already set on the message being sent. | true |
| true |
| JMS:JAVADOC:1297 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, String
)
throws
JMSRuntimeException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:1298 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, String
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:1299 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, Object
)
| Specifies that messages sent using this JMSProducer will have the specified property set to the specified Java object value. Note that this method works only for the objectified primitive object types (Integer, Double, Long ...) and String objects. This will replace any property of the same name that is already set on the message being sent. | true |
| true |
| JMS:JAVADOC:1300 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, Object
)
throws
JMSRuntimeException
| if the JMS provider fails to set the property due to some internal error. | true |
| false |
| JMS:JAVADOC:1301 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, Object
)
throws
IllegalArgumentException
| if the name is null or if the name is an empty string. | true |
| true |
| JMS:JAVADOC:1302 | JMSProducer | javax.jms.JMSProducer.setProperty
(
String
, Object
)
throws
MessageFormatRuntimeException
| if the object is invalid | true |
| true |
| JMS:JAVADOC:1303 | JMSProducer | javax.jms.JMSProducer.setTimeToLive
(
long
)
| Specifies the time to live of messages that are sent using this JMSProducer. This is used to determine the expiration time of a message. The expiration time of a message is the sum of the message's time to live and the time it is sent. For transacted sends, this is the time the client sends the message, not the time the transaction is committed. Clients should not receive messages that have expired; however, JMS does not guarantee that this will not happen. A JMS provider should do its best to accurately expire messages; however, JMS does not define the accuracy provided. It is not acceptable to simply ignore time-to-live. Time to live is set to zero by default, which means a message never expires. | true |
| true |
| JMS:JAVADOC:1304 | JMSProducer | javax.jms.JMSProducer.setTimeToLive
(
long
)
throws
JMSRuntimeException
| if the JMS provider fails to set the time to live due to some internal error. | true |
| false |
| JMS:JAVADOC:1315 | void | javax.jms.XASession.commit
throws
JMSException
|
| false |
| true |
| JMS:JAVADOC:1316 | void | javax.jms.XASession.rollback
throws
JMSException
|
| false |
| true |
| JMS:JAVADOC:1318 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, int
, int
, long
)
throws
UnsupportedOperationException
| if a client uses this method with a MessageProducer that specified a destination at creation time. | true |
| true |
| JMS:JAVADOC:1319 | void | javax.jms.MessageProducer.send
(
Message
, CompletionListener
)
throws
IllegalArgumentException
| if the specified CompletionListener is null | true |
| true |
| JMS:JAVADOC:1320 | void | javax.jms.MessageProducer.send
(
Message
, int
, int
, long
, CompletionListener
)
throws
IllegalArgumentException
| if the specified CompletionListener is null | true |
| true |
| JMS:JAVADOC:1321 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, CompletionListener
)
throws
IllegalArgumentException
| if the specified CompletionListener is null | true |
| true |
| JMS:JAVADOC:1322 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, int
, int
, long
, CompletionListener
)
throws
IllegalArgumentException
| if the specified CompletionListener is null | true |
| true |
| JMS:JAVADOC:1323 | void | javax.jms.MessageProducer.send
(
Destination
, Message
, int
, int
, long
, CompletionListener
)
throws
UnsupportedOperationException
| if a client uses this method with a MessageProducer that specified a destination at creation time. | true |
| true |
| JMS:JAVADOC:1324 | String | javax.jms.JMSConnectionFactoryDefinition.className
| Fully-qualified name of the JMS connection factory implementation class. Ignored if a resource adapter is used. | false |
| true |
| JMS:JAVADOC:1325 | String | javax.jms.JMSConnectionFactoryDefinition.clientId
| Client id to use for connection. | false |
| true |
| JMS:JAVADOC:1327 | String | javax.jms.JMSConnectionFactoryDefinition.description
| Description of this JMS connection factory. | false |
| true |
| JMS:JAVADOC:1330 | int | javax.jms.JMSConnectionFactoryDefinition.maxPoolSize
| Maximum number of connections that should be concurrently allocated for a connection pool. Default is vendor-specific. | false |
| true |
| JMS:JAVADOC:1331 | int | javax.jms.JMSConnectionFactoryDefinition.minPoolSize
| Minimum number of connections that should be concurrently allocated for a connection pool. Default is vendor-specific. | false |
| true |
| JMS:JAVADOC:1332 | String | javax.jms.JMSConnectionFactoryDefinition.name
| JNDI name of the JMS connection factory being defined. | false |
| true |
| JMS:JAVADOC:1333 | String | javax.jms.JMSConnectionFactoryDefinition.password
| Password to use for connection authentication. | false |
| true |
| JMS:JAVADOC:1334 | String[] | javax.jms.JMSConnectionFactoryDefinition.properties
| JMS connection factory property. This may be a vendor-specific property or a less commonly used ConnectionFactory property. Properties are specified using the format: propertyName=propertyValue with one property per array element. | false |
| true |
| JMS:JAVADOC:1335 | String | javax.jms.JMSConnectionFactoryDefinition.resourceAdapter
| Resource adapter name. If not specified then the application server will define the default behaviour, which may or may not involve the use of a resource adapter. | true |
| true |
| JMS:JAVADOC:1336 | boolean | javax.jms.JMSConnectionFactoryDefinition.transactional
| Set to false if connections should not participate in transactions. Default is to enlist in a transaction when one is active or becomes active. | false |
| true |
| JMS:JAVADOC:1338 | String | javax.jms.JMSConnectionFactoryDefinition.user
| User name to use for connection authentication. | false |
| true |
| JMS:JAVADOC:1339 | JMSConnectionFactoryDefinition[] | javax.jms.JMSConnectionFactoryDefinitions.value
|
| false |
| true |
| JMS:JAVADOC:1340 | void | javax.jms.JMSContext.acknowledge
throws
IllegalStateRuntimeException
| if the JMSContext is closed. if the JMSContext is container-managed (injected) | true |
| true |
| JMS:JAVADOC:1341 | JMSConsumer | javax.jms.JMSContext.createDurableConsumer
(
Topic
, String
, String
, boolean
)
throws
IllegalStateRuntimeException
| if the client identifier is unset | true |
| true |
| JMS:JAVADOC:1342 | String | javax.jms.JMSDestinationDefinition.className
| Fully-qualified name of the JMS destination implementation class. Ignored if a resource adapter is used unless the resource adapter defines more than one JMS destination implementation class for the specified interface | false |
| true |
| JMS:JAVADOC:1343 | String | javax.jms.JMSDestinationDefinition.description
| Description of this JMS destination. | false |
| true |
| JMS:JAVADOC:1344 | String | javax.jms.JMSDestinationDefinition.destinationName
| Name of the queue or topic. | false |
| true |
| JMS:JAVADOC:1345 | String | javax.jms.JMSDestinationDefinition.name
| JNDI name of the destination resource being defined. | false |
| true |
| JMS:JAVADOC:1346 | String[] | javax.jms.JMSDestinationDefinition.properties
| JMS destination property. This may be a vendor-specific property or a less commonly used ConnectionFactory property. Properties are specified using the format: propertyName=propertyValue with one property per array element. | false |
| true |
| JMS:JAVADOC:1347 | String | javax.jms.JMSDestinationDefinition.resourceAdapter
| Resource adapter name. If not specified then the application server will define the default behaviour, which may or may not involve the use of a resource adapter. | true |
| true |
| JMS:JAVADOC:1348 | JMSDestinationDefinition[] | javax.jms.JMSDestinationDefinitions.value
|
| false |
| true |
| JMS:JAVADOC:1349 | MessageConsumer | javax.jms.Session.createDurableConsumer
(
Topic
, String
, String
, boolean
)
throws
IllegalStateException
| if the client identifier is unset | true |
| true |
| JMS:JAVADOC:1350 | TopicSubscriber | javax.jms.Session.createDurableSubscriber
(
Topic
, String
, String
, boolean
)
throws
IllegalStateException
| if the client identifier is unset | true |
| true |
| JMS:JAVADOC:1351 | void | javax.jms.Connection.close
throws
IllegalStateException
| this method has been called by a MessageListener on its own Connection this method has been called by a CompletionListener callback method on its own Connection | true |
| true |
| JMS:JAVADOC:1352 | void | javax.jms.Connection.stop
throws
IllegalStateException
| this method has been called by a MessageListener on its own Connection | true |
| true |
| JMS:JAVADOC:1353 | void | javax.jms.JMSContext.close
throws
IllegalStateRuntimeException
| if this method has been called by a MessageListener on its own JMSContext if this method has been called by a CompletionListener callback method on its own JMSContext if the JMSContext is container-managed (injected) | true |
| true |
| JMS:JAVADOC:1354 | void | javax.jms.JMSContext.stop
throws
IllegalStateRuntimeException
| if this method has been called by a MessageListener on its own JMSContext if the JMSContext is container-managed (injected). | true |
| true |
| JMS:JAVADOC:1355 | void | javax.jms.MessageProducer.close
throws
IllegalStateException
| this method has been called by a CompletionListener callback method on its own MessageProducer | true |
| true |
| JMS:JAVADOC:1356 | void | javax.jms.Session.close
throws
IllegalStateException
| this method has been called by a MessageListener on its own Session this method has been called by a CompletionListener callback method on its own Session | true |
| true |
| JMS:JAVADOC:1357 | Object | javax.jms.Message.getBody
(
Class
)
| Returns the message body as an object of the specified type. This method may be called on any type of message except for StreamMessage. The message body must be capable of being assigned to the specified type. This means that the specified class or interface must be either the same as, or a superclass or superinterface of, the class of the message body. If the message has no body then any type may be specified and null is returned. | true |
| true |
| JMS:JAVADOC:1358 | Object | javax.jms.Message.getBody
(
Class
)
throws
JMSException
| if the JMS provider fails to get the message body due to some internal error. | true |
| false |
| JMS:JAVADOC:1359 | Object | javax.jms.Message.getBody
(
Class
)
throws
MessageFormatException
| if the message is a StreamMessage if the message body cannot be assigned to the specified type if the message is an ObjectMessage and object deserialization fails. | true |
| true |
| JMS:JAVADOC:1361 | boolean | javax.jms.Message.isBodyAssignableTo
(
Class
)
| Returns whether the message body is capable of being assigned to the specified type. If this method returns true then a subsequent call to the method getBody on the same message with the same type argument would not throw a MessageFormatException. If the message is a StreamMessage then false is always returned. If the message is a ObjectMessage and object deserialization fails then false is returned. If the message has no body then any type may be specified and true is returned. | true |
| true |
| JMS:JAVADOC:1362 | boolean | javax.jms.Message.isBodyAssignableTo
(
Class
)
throws
JMSException
| if the JMS provider fails to return a value due to some internal error. | true |
| false |
| JMS:JAVADOC:1366 | void | javax.jms.JMSContext.setAutoStart
(
boolean
)
throws
IllegalStateRuntimeException
| if the JMSContext is container-managed (injected) | true |
| true |
| JMS:JAVADOC:1367 | void | javax.jms.JMSContext.setExceptionListener
(
ExceptionListener
)
throws
IllegalStateRuntimeException
| if the JMSContext is container-managed (injected). | true |
| true |
| JMS:JAVADOC:1368 | void | javax.jms.JMSContext.start
throws
IllegalStateRuntimeException
| if the JMSContext is container-managed (injected). | true |
| true |
| JMS:JAVADOC:1369 | Object | javax.jms.JMSConsumer.receiveBody
(
Class
)
| Receives the next message produced for this JMSConsumer and returns its body as an object of the specified type. This method may be used to receive any type of message except for StreamMessage and Message, so long as the message has a body which is capable of being assigned to the specified type. This means that the specified class or interface must either be the same as, or a superclass or superinterface of, the class of the message body. If the message is not one of the supported types, or its body cannot be assigned to the specified type, or it has no body, then a MessageFormatRuntimeException is thrown. This method does not give access to the message headers or properties (such as the JMSRedelivered message header field or the JMSXDeliveryCount message property) and should only be used if the application has no need to access them. This call blocks indefinitely until a message is produced or until this JMSConsumer is closed. If this method is called within a transaction, the JMSConsumer retains the message until the transaction commits. The result of this method throwing a MessageFormatRuntimeException depends on the session mode: AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE: The JMS provider will behave as if the unsuccessful call to receiveBody had not occurred. The message will be delivered again before any subsequent messages. This is not considered to be redelivery and does not cause the JMSRedelivered message header field to be set or the JMSXDeliveryCount message property to be incremented. CLIENT_ACKNOWLEDGE: The JMS provider will behave as if the call to receiveBody had been successful and will not deliver the message again. As with any message that is delivered with a session mode of CLIENT_ACKNOWLEDGE, the message will not be acknowledged until acknowledge is called on the JMSContext. If an application wishes to have the failed message redelivered, it must call recover on the JMSContext. The redelivered message's JMSRedelivered message header field will be set and its JMSXDeliveryCount message property will be incremented. Transacted session: The JMS provider will behave as if the call to receiveBody had been successful and will not deliver the message again. As with any message that is delivered in a transacted session, the transaction will remain uncommitted until the transaction is committed or rolled back by the application. If an application wishes to have the failed message redelivered, it must roll back the transaction. The redelivered message's JMSRedelivered message header field will be set and its JMSXDeliveryCount message property will be incremented. | true |
| true |
| JMS:JAVADOC:1370 | Object | javax.jms.JMSConsumer.receiveBody
(
Class
)
throws
JMSRuntimeException
| if the JMS provider fails to receive the next message due to some internal error | true |
| false |
| JMS:JAVADOC:1371 | Object | javax.jms.JMSConsumer.receiveBody
(
Class
)
throws
MessageFormatRuntimeException
| if the message is not one of the supported types listed above if the message body cannot be assigned to the specified type if the message has no body if the message is an ObjectMessage and object deserialization fails. | true |
| true |
| JMS:JAVADOC:1372 | Object | javax.jms.JMSConsumer.receiveBody
(
Class
, long
)
| Receives the next message produced for this JMSConsumer that arrives within the specified timeout period and returns its body as an object of the specified type. This method may be used to receive any type of message except for StreamMessage and Message, so long as the message has a body which is capable of being assigned to the specified type. This means that the specified class or interface must either be the same as, or a superclass or superinterface of, the class of the message body. If the message is not one of the supported types, or its body cannot be assigned to the specified type, or it has no body, then a MessageFormatRuntimeException is thrown. This method does not give access to the message headers or properties (such as the JMSRedelivered message header field or the JMSXDeliveryCount message property) and should only be used if the application has no need to access them. This call blocks until a message arrives, the timeout expires, or this JMSConsumer is closed. A timeout of zero never expires, and the call blocks indefinitely. If this method is called within a transaction, the JMSConsumer retains the message until the transaction commits. The result of this method throwing a MessageFormatRuntimeException depends on the session mode: AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE: The JMS provider will behave as if the unsuccessful call to receiveBody had not occurred. The message will be delivered again before any subsequent messages. This is not considered to be redelivery and does not cause the JMSRedelivered message header field to be set or the JMSXDeliveryCount message property to be incremented. CLIENT_ACKNOWLEDGE: The JMS provider will behave as if the call to receiveBody had been successful and will not deliver the message again. As with any message that is delivered with a session mode of CLIENT_ACKNOWLEDGE, the message will not be acknowledged until acknowledge is called on the JMSContext. If an application wishes to have the failed message redelivered, it must call recover on the JMSContext. The redelivered message's JMSRedelivered message header field will be set and its JMSXDeliveryCount message property will be incremented. Transacted session: The JMS provider will behave as if the call to receiveBody had been successful and will not deliver the message again. As with any message that is delivered in a transacted session, the transaction will remain uncommitted until the transaction is committed or rolled back by the application. If an application wishes to have the failed message redelivered, it must roll back the transaction. The redelivered message's JMSRedelivered message header field will be set and its JMSXDeliveryCount message property will be incremented. | true |
| true |
| JMS:JAVADOC:1373 | Object | javax.jms.JMSConsumer.receiveBody
(
Class
, long
)
throws
JMSRuntimeException
| if the JMS provider fails to receive the next message due to some internal error | true |
| false |
| JMS:JAVADOC:1374 | Object | javax.jms.JMSConsumer.receiveBody
(
Class
, long
)
throws
MessageFormatRuntimeException
| if the message is not one of the supported types listed above if the message body cannot be assigned to the specified type if the message has no body if the message is an ObjectMessage and object deserialization fails. | true |
| true |
| JMS:JAVADOC:1375 | Object | javax.jms.JMSConsumer.receiveBodyNoWait
(
Class
)
| Receives the next message produced for this JMSConsumer if one is immediately available and returns its body as an object of the specified type. This method may be used to receive any type of message except for StreamMessage and Message, so long as the message has a body which is capable of being assigned to the specified type. This means that the specified class or interface must either be the same as, or a superclass or superinterface of, the class of the message body. If the message is not one of the supported types, or its body cannot be assigned to the specified type, or it has no body, then a MessageFormatRuntimeException is thrown. This method does not give access to the message headers or properties (such as the JMSRedelivered message header field or the JMSXDeliveryCount message property) and should only be used if the application has no need to access them. If a message is not immediately available null is returned. If this method is called within a transaction, the JMSConsumer retains the message until the transaction commits. The result of this method throwing a MessageFormatRuntimeException depends on the session mode: AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE: The JMS provider will behave as if the unsuccessful call to receiveBodyNoWait had not occurred. The message will be delivered again before any subsequent messages. This is not considered to be redelivery and does not cause the JMSRedelivered message header field to be set or the JMSXDeliveryCount message property to be incremented. CLIENT_ACKNOWLEDGE: The JMS provider will behave as if the call to receiveBodyNoWait had been successful and will not deliver the message again. As with any message that is delivered with a session mode of CLIENT_ACKNOWLEDGE, the message will not be acknowledged until acknowledge is called on the JMSContext. If an application wishes to have the failed message redelivered, it must call recover on the JMSContext. The redelivered message's JMSRedelivered message header field will be set and its JMSXDeliveryCount message property will be incremented. Transacted session: The JMS provider will behave as if the call to receiveBodyNoWait had been successful and will not deliver the message again. As with any message that is delivered in a transacted session, the transaction will remain uncommitted until the transaction is committed or rolled back by the application. If an application wishes to have the failed message redelivered, it must roll back the transaction. The redelivered message's JMSRedelivered message header field will be set and its JMSXDeliveryCount message property will be incremented. | true |
| true |
| JMS:JAVADOC:1376 | Object | javax.jms.JMSConsumer.receiveBodyNoWait
(
Class
)
throws
JMSRuntimeException
| if the JMS provider fails to receive the next message due to some internal error | true |
| false |
| JMS:JAVADOC:1377 | Object | javax.jms.JMSConsumer.receiveBodyNoWait
(
Class
)
throws
MessageFormatRuntimeException
| if the message is not one of the supported types listed above if the message body cannot be assigned to the specified type if the message has no body if the message is an ObjectMessage and object deserialization fails. | true |
| true |
| JMS:JAVADOC:1378 | JMSConsumer | javax.jms.JMSContext.createDurableConsumer
(
Topic
, String
)
throws
IllegalStateRuntimeException
| if the client identifier is unset | true |
| true |
| JMS:JAVADOC:1382 | JMSConsumer | javax.jms.JMSContext.createSharedDurableConsumer
(
Topic
, String
)
| 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. This method creates the durable subscription without a message selector. A durable subscription is used by an application which needs to receive all the messages published on a topic, including the ones published when there is no active consumer associated with it. The JMS provider retains a record of this durable subscription and ensures that all messages from the topic's publishers are retained until they are delivered to, and acknowledged by, a consumer on this durable subscription or until they have expired. A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method. This method may only be used with shared durable subscriptions. Any durable subscription created using this method will be shared. This means that multiple active (i.e. not closed) consumers on the subscription may exist at the same time. The term "consumer" here means a MessageConsumer or JMSConsumer object in any client. A shared durable subscription is identified by a name specified by the client and by the client identifier (which may be unset). An application which subsequently wishes to create a consumer on that shared durable subscription must use the same client identifier. If a shared durable subscription already exists with the same name and client identifier (if set), and the same topic and message selector has been specified, then this method creates a JMSConsumer on the existing shared durable subscription. If a shared durable subscription already exists with the same name and client identifier (if set) but a different topic or message selector has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this is equivalent to unsubscribing (deleting) the old one and creating a new one. If a shared durable subscription already exists with the same name and client identifier (if set) but a different topic or message selector has been specified, and there is a consumer already active (i.e. not closed) on the durable subscription, then a JMSRuntimeException will be thrown. A shared durable subscription and an unshared durable subscription may not have the same name and client identifier (if set). If an unshared durable subscription already exists with the same name and client identifier (if set) then a JMSRuntimeException is thrown. If a message selector is specified then only messages with properties matching the message selector expression will be added to the subscription. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId (which may be unset). Such subscriptions would be completely separate. | true |
| true |
| JMS:JAVADOC:1383 | JMSConsumer | javax.jms.JMSContext.createSharedDurableConsumer
(
Topic
, String
)
throws
InvalidDestinationRuntimeException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:1384 | JMSConsumer | javax.jms.JMSContext.createSharedDurableConsumer
(
Topic
, String
)
throws
JMSRuntimeException
| if the session fails to create the shared durable subscription and MessageConsumer due to some internal error if a shared durable subscription already exists with the same name and client identifier, but a different topic, or message selector, and there is a consumer already active if an unshared durable subscription already exists with the same name and client identifier | true |
| true |
| JMS:JAVADOC:1385 | JMSConsumer | javax.jms.JMSContext.createSharedDurableConsumer
(
Topic
, String
, String
)
| 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. A durable subscription is used by an application which needs to receive all the messages published on a topic, including the ones published when there is no active consumer associated with it. The JMS provider retains a record of this durable subscription and ensures that all messages from the topic's publishers are retained until they are delivered to, and acknowledged by, a consumer on this durable subscription or until they have expired. A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method. This method may only be used with shared durable subscriptions. Any durable subscription created using this method will be shared. This means that multiple active (i.e. not closed) consumers on the subscription may exist at the same time. The term "consumer" here means a MessageConsumer or JMSConsumer object in any client. A shared durable subscription is identified by a name specified by the client and by the client identifier (which may be unset). An application which subsequently wishes to create a consumer on that shared durable subscription must use the same client identifier. If a shared durable subscription already exists with the same name and client identifier (if set), and the same topic and message selector have been specified, then this method creates a JMSConsumer on the existing shared durable subscription. If a shared durable subscription already exists with the same name and client identifier (if set), but a different topic or message selector has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this is equivalent to unsubscribing (deleting) the old one and creating a new one. If a shared durable subscription already exists with the same name and client identifier (if set) but a different topic or message selector has been specified, and there is a consumer already active (i.e. not closed) on the durable subscription, then a JMSRuntimeException will be thrown. A shared durable subscription and an unshared durable subscription may not have the same name and client identifier (if set). If an unshared durable subscription already exists with the same name and client identifier (if set) then a JMSRuntimeException is thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId (which may be unset). Such subscriptions would be completely separate. | true |
| true |
| JMS:JAVADOC:1390 | MessageConsumer | javax.jms.Session.createDurableConsumer
(
Topic
, String
)
throws
IllegalStateException
| if the client identifier is unset | true |
| true |
| JMS:JAVADOC:1391 | TopicSubscriber | javax.jms.Session.createDurableSubscriber
(
Topic
, String
)
throws
IllegalStateException
| if the client identifier is unset | true |
| true |
| JMS:JAVADOC:1393 | MessageConsumer | javax.jms.Session.createSharedDurableConsumer
(
Topic
, String
)
| Creates a shared durable subscription on the specified topic (if one does not already exist), specifying a message selector and the noLocal parameter, and creates a consumer on that durable subscription. This method creates the durable subscription without a message selector. A durable subscription is used by an application which needs to receive all the messages published on a topic, including the ones published when there is no active consumer associated with it. The JMS provider retains a record of this durable subscription and ensures that all messages from the topic's publishers are retained until they are delivered to, and acknowledged by, a consumer on this durable subscription or until they have expired. A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method. This method may only be used with shared durable subscriptions. Any durable subscription created using this method will be shared. This means that multiple active (i.e. not closed) consumers on the subscription may exist at the same time. The term "consumer" here means a MessageConsumer or JMSConsumer object in any client. A shared durable subscription is identified by a name specified by the client and by the client identifier (which may be unset). An application which subsequently wishes to create a consumer on that shared durable subscription must use the same client identifier. If a shared durable subscription already exists with the same name and client identifier (if set), and the same topic and message selector has been specified, then this method creates a MessageConsumer on the existing shared durable subscription. If a shared durable subscription already exists with the same name and client identifier (if set) but a different topic or message selector has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this is equivalent to unsubscribing (deleting) the old one and creating a new one. If a shared durable subscription already exists with the same name and client identifier (if set) but a different topic or message selector has been specified, and there is a consumer already active (i.e. not closed) on the durable subscription, then a JMSException will be thrown. A shared durable subscription and an unshared durable subscription may not have the same name and client identifier (if set). If an unshared durable subscription already exists with the same name and client identifier (if set) then a JMSException is thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId (which may be unset). Such subscriptions would be completely separate. | true |
| true |
| JMS:JAVADOC:1394 | MessageConsumer | javax.jms.Session.createSharedDurableConsumer
(
Topic
, String
)
throws
JMSException
| if the session fails to create the shared durable subscription and MessageConsumer due to some internal error if a shared durable subscription already exists with the same name and client identifier, but a different topic or message selector, and there is a consumer already active if an unshared durable subscription already exists with the same name and client identifier | true |
| true |
| JMS:JAVADOC:1395 | MessageConsumer | javax.jms.Session.createSharedDurableConsumer
(
Topic
, String
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:1396 | MessageConsumer | javax.jms.Session.createSharedDurableConsumer
(
Topic
, String
, String
)
| 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. A durable subscription is used by an application which needs to receive all the messages published on a topic, including the ones published when there is no active consumer associated with it. The JMS provider retains a record of this durable subscription and ensures that all messages from the topic's publishers are retained until they are delivered to, and acknowledged by, a consumer on this durable subscription or until they have expired. A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method. This method may only be used with shared durable subscriptions. Any durable subscription created using this method will be shared. This means that multiple active (i.e. not closed) consumers on the subscription may exist at the same time. The term "consumer" here means a MessageConsumer or JMSConsumer object in any client. A shared durable subscription is identified by a name specified by the client and by the client identifier (which may be unset). An application which subsequently wishes to create a consumer on that shared durable subscription must use the same client identifier. If a shared durable subscription already exists with the same name and client identifier (if set), and the same topic and message selector has been specified, then this method creates a MessageConsumer on the existing shared durable subscription. If a shared durable subscription already exists with the same name and client identifier (if set) but a different topic or message selector has been specified, and there is no consumer already active (i.e. not closed) on the durable subscription then this is equivalent to unsubscribing (deleting) the old one and creating a new one. If a shared durable subscription already exists with the same name and client identifier (if set) but a different topic or message selector has been specified, and there is a consumer already active (i.e. not closed) on the durable subscription, then a JMSException will be thrown. A shared durable subscription and an unshared durable subscription may not have the same name and client identifier (if set). If an unshared durable subscription already exists with the same name and client identifier (if set) then a JMSException is thrown. There is no restriction on durable subscriptions and shared non-durable subscriptions having the same name and clientId (which may be unset). Such subscriptions would be completely separate. | true |
| true |
| JMS:JAVADOC:1397 | MessageConsumer | javax.jms.Session.createSharedDurableConsumer
(
Topic
, String
, String
)
throws
JMSException
| if the session fails to create the shared durable subscription and MessageConsumer due to some internal error if a shared durable subscription already exists with the same name and client identifier, but a different topic or message selector, and there is a consumer already active if an unshared durable subscription already exists with the same name and client identifier | true |
| true |
| JMS:JAVADOC:1398 | MessageConsumer | javax.jms.Session.createSharedDurableConsumer
(
Topic
, String
, String
)
throws
InvalidDestinationException
| if an invalid topic is specified. | true |
| true |
| JMS:JAVADOC:1399 | MessageConsumer | javax.jms.Session.createSharedDurableConsumer
(
Topic
, String
, String
)
throws
InvalidSelectorException
| if the message selector is invalid. | true |
| true |
| JMS:JAVADOC:1402 | TransactionInProgressRuntimeException | javax.jms.TransactionInProgressRuntimeException.TransactionInProgressRuntimeException
(
String
, String
)
| Constructs a TransactionInProgressRuntimeException with the specified detail message and error code. | true |
| true |
| JMS:JAVADOC:1403 | TransactionInProgressRuntimeException | javax.jms.TransactionInProgressRuntimeException.TransactionInProgressRuntimeException
(
String
)
| Constructs a TransactionInProgressRuntimeException with the specified detail message | true |
| true |
| JMS:JAVADOC:1404 | XAJMSContext | javax.jms.XAConnectionFactory.createXAContext
| Creates a XAJMSContext with the default user identity A connection and session are created for use by the new XAJMSContext. The connection is created in stopped mode but will be automatically started when a JMSConsumer is created. | false |
| true |
| JMS:JAVADOC:1405 | XAJMSContext | javax.jms.XAConnectionFactory.createXAContext
throws
JMSRuntimeException
| if the JMS provider fails to create the XAJMSContext due to some internal error. | false |
| true |
| JMS:JAVADOC:1406 | XAJMSContext | javax.jms.XAConnectionFactory.createXAContext
throws
JMSSecurityRuntimeException
| if client authentication fails due to an invalid user name or password. | false |
| true |
| JMS:JAVADOC:1407 | XAJMSContext | javax.jms.XAConnectionFactory.createXAContext
(
String
, String
)
| Creates a JMSContext with the specified user identity A connection and session are created for use by the new XAJMSContext. The connection is created in stopped mode but will be automatically started when a JMSConsumer is created. | false |
| true |
| JMS:JAVADOC:1408 | XAJMSContext | javax.jms.XAConnectionFactory.createXAContext
(
String
, String
)
throws
JMSRuntimeException
| if the JMS provider fails to create the JMSContext due to some internal error. | false |
| true |
| JMS:JAVADOC:1409 | XAJMSContext | javax.jms.XAConnectionFactory.createXAContext
(
String
, String
)
throws
JMSSecurityRuntimeException
| if client authentication fails due to an invalid user name or password. | false |
| true |
| JMS:JAVADOC:1410 | void | javax.jms.XAJMSContext.commit
| Throws a TransactionInProgressRuntimeException, since it should not be called for an XAJMSContext object. | false |
| true |
| JMS:JAVADOC:1411 | void | javax.jms.XAJMSContext.commit
throws
TransactionInProgressRuntimeException
| if the method is called on an XAJMSContext. | false |
| true |
| JMS:JAVADOC:1412 | JMSContext | javax.jms.XAJMSContext.getContext
| Returns the JMSContext object associated with this XAJMSContext. | false |
| true |
| JMS:JAVADOC:1413 | boolean | javax.jms.XAJMSContext.getTransacted
| Returns whether the session is in transacted mode; this method always returns true. | false |
| true |
| JMS:JAVADOC:1414 | XAResource | javax.jms.XAJMSContext.getXAResource
| Returns an XAResource to the caller. | false |
| true |
| JMS:JAVADOC:1415 | void | javax.jms.XAJMSContext.rollback
| Throws a TransactionInProgressRuntimeException, since it should not be called for an XAJMSContext object. | false |
| true |
| JMS:JAVADOC:1416 | void | javax.jms.XAJMSContext.rollback
throws
TransactionInProgressRuntimeException
| if the method is called on an XAJMSContext. | false |
| true |
| JMS:JAVADOC:1422 | MessageNotWriteableRuntimeException | javax.jms.MessageNotWriteableRuntimeException.MessageNotWriteableRuntimeException
(
String
, String
)
| Constructs a MessageNotWriteableRuntimeException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:1423 | MessageNotWriteableRuntimeException | javax.jms.MessageNotWriteableRuntimeException.MessageNotWriteableRuntimeException
(
String
)
| Constructs a MessageNotWriteableRuntimeException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:1424 | MessageNotWriteableRuntimeException | javax.jms.MessageNotWriteableRuntimeException.MessageNotWriteableRuntimeException
(
String
, String
, Throwable
)
| Constructs a MessageNotWriteableRuntimeException with the specified detail message, error code and cause | true |
| true |
| JMS:JAVADOC:1428 | ConnectionConsumer | javax.jms.Connection.createDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
IllegalStateException
| if called on a QueueConnection | false |
| true |
| JMS:JAVADOC:1429 | ConnectionConsumer | javax.jms.Connection.createSharedConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
| Creates a connection consumer for this connection (optional operation) on the specific topic using a shared non-durable subscription with the specified name. This is an expert facility not used by ordinary JMS clients. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSException to be thrown though this is not guaranteed. | false |
| true |
| JMS:JAVADOC:1430 | ConnectionConsumer | javax.jms.Connection.createSharedConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
JMSException
| if the Connection object fails to create a connection consumer for one of the following reasons: an internal error has occurred invalid arguments for sessionPool and messageSelector or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | false |
| true |
| JMS:JAVADOC:1431 | ConnectionConsumer | javax.jms.Connection.createSharedConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
IllegalStateException
| if called on a QueueConnection | false |
| true |
| JMS:JAVADOC:1432 | ConnectionConsumer | javax.jms.Connection.createSharedConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
InvalidDestinationException
| if an invalid destination is specified. | false |
| true |
| JMS:JAVADOC:1433 | ConnectionConsumer | javax.jms.Connection.createSharedConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
InvalidSelectorException
| if the message selector is invalid. | false |
| true |
| JMS:JAVADOC:1434 | ConnectionConsumer | javax.jms.Connection.createSharedDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
| Creates a connection consumer for this connection (optional operation) on the specific topic using a shared durable subscription with the specified name. This is an expert facility not used by ordinary JMS clients. This method must not be used in a Java EE web or EJB application. Doing so may cause a JMSException to be thrown though this is not guaranteed. | false |
| true |
| JMS:JAVADOC:1435 | ConnectionConsumer | javax.jms.Connection.createSharedDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
JMSException
| if the Connection object fails to create a connection consumer for one of the following reasons: an internal error has occurred invalid arguments for sessionPool and messageSelector or this method has been called in a Java EE web or EJB application (though it is not guaranteed that an exception is thrown in this case) | false |
| true |
| JMS:JAVADOC:1436 | ConnectionConsumer | javax.jms.Connection.createSharedDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
IllegalStateException
| if called on a QueueConnection | false |
| true |
| JMS:JAVADOC:1437 | ConnectionConsumer | javax.jms.Connection.createSharedDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
InvalidDestinationException
| if an invalid destination is specified. | false |
| true |
| JMS:JAVADOC:1438 | ConnectionConsumer | javax.jms.Connection.createSharedDurableConnectionConsumer
(
Topic
, String
, String
, ServerSessionPool
, int
)
throws
InvalidSelectorException
| if the message selector is invalid. | false |
| true |
| JMS:JAVADOC:1439 | TransactionInProgressRuntimeException | javax.jms.TransactionInProgressRuntimeException.TransactionInProgressRuntimeException
(
String
, String
, Throwable
)
| Constructs a TransactionInProgressRuntimeException with the specified detail message, error code and cause | true |
| true |
| JMS:JAVADOC:1440 | ResourceAllocationRuntimeException | javax.jms.ResourceAllocationRuntimeException.ResourceAllocationRuntimeException
(
String
, String
)
| Constructs a ResourceAllocationRuntimeException with the specified reason and error code. | true |
| true |
| JMS:JAVADOC:1441 | ResourceAllocationRuntimeException | javax.jms.ResourceAllocationRuntimeException.ResourceAllocationRuntimeException
(
String
)
| Constructs a ResourceAllocationRuntimeException with the specified reason. The error code defaults to null. | true |
| true |
| JMS:JAVADOC:1442 | ResourceAllocationRuntimeException | javax.jms.ResourceAllocationRuntimeException.ResourceAllocationRuntimeException
(
String
, String
, Throwable
)
| Constructs a ResourceAllocationRuntimeException with the specified detail message, error code and cause | true |
| true |
| JMS:JAVADOC:1451 | String | javax.jms.JMSConnectionFactoryDefinition.interfaceName
| Fully qualified name of the JMS connection factory interface. Permitted values are javax.jms.ConnectionFactory or javax.jms.QueueConnectionFactory or javax.jms.TopicConnectionFactory. If not specified then javax.jms.ConnectionFactory will be used. | true |
| true |
| JMS:JAVADOC:1452 | String | javax.jms.JMSDestinationDefinition.interfaceName
| Fully qualified name of the JMS destination interface. Permitted values are javax.jms.Queue or javax.jms.Topic. | true |
| true |