Java Message System
JMS - 2.0
Specification Assertion Detail

TotalsTotalActiveDeprecatedRemoved
# of Assertions 34934900
# of Required Assertions 34034000
# of Optional Assertions 9900

IDChapterSectionDescriptionRequiredDependencyImplementation SpecificDefined byStatusTestable
JMS:SPEC:233.4.1The 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, it holds the destination object specified by the sending method. When a message is received, its destination value must be equivalent to the value assigned when it was sent.true
falsetechnologyactivetrue
JMS:SPEC:333.4.2The JMSDeliveryMode header field contains the delivery mode specified when the message was sent. When a message is sent, this field is ignored. After completion of the send, it holds the delivery mode specified by the sending method.true
falsetechnologyactivetrue
JMS:SPEC:433.4.3All JMSMessageID values must start with the prefix ID: . true
falsetechnologyactivetrue
JMS:SPEC:533.4.3The JMSMessageID header field contains a value that uniquely identifies each message sent by a provider. Uniqueness of message ID values across different providers is not required.true
falsetechnologyactivefalse
JMS:SPEC:633.4.3When a client sets a producer to disable message ID, it is saying that it does not depend on the value of message ID for the messages it produces. 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.false
truetechnologyactivefalse
JMS:SPEC:733.4.4When the send method returns, the field (JMSTimestamp) contains a a time value somewhere in the interval between the call and the return. It is in the format of a normal Java millis time value.true
falsetechnologyactivetrue
JMS:SPEC:833.4.4When a client sets a producer to disable timestamps it is saying that it does not depend on the value of timestamp for the messages it produces. 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.false
truetechnologyactivefalse
JMS:SPEC:1133.4.5Application-specified values must not start with the ID: prefix; this is reserved for provider-generated message ID values.true
falsetechnologyactivefalse
JMS:SPEC:1233.4.6The JMSReplyTo header field contains a Destination supplied by a client when a message is sent. It is the destination where a reply to the message should be sent. 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. true
falsetechnologyactivetrue
JMS:SPEC:1333.4.7In general, a provider must set the JMSRedelivered message header field of a message whenever it is redelivering a message.true
falsetechnologyactivefalse
JMS:SPEC:1433.4.8The JMSType header field contains a message type identifier supplied by a client when a message is sent.true
truetechnologyactivefalse
JMS:SPEC:1533.4.9JMSExpirationtrue
falsetechnologyactivetrue
JMS:SPEC:15.133.4.9When a message is sent, its expiration time is calculated as the sum of the time-to-live value specified on the send method and the current GMT value. On return from the send method, the message's JMSExpiration header field contains this value. true
falsetechnologyactivefalse
JMS:SPEC:15.233.4.9When a message is received its JMSExpiration header field contains this same value.true
falsetechnologyactivetrue
JMS:SPEC:15.333.4.9If the time-to-live is specified as zero, expiration is set to zero to indicate that the message does not expire.true
falsetechnologyactivetrue
JMS:SPEC:1633.4.10The JMSPriority header field contains the message's priority. When a message is sent, this field is ignored. After completion of the send, it holds the value specified by the method sending the message. true
falsetechnologyactivetrue
JMS:SPEC:24633.4.11How Message Header Values Are Settrue
falsetechnologyactivetrue
JMS:SPEC:246.133.4.11Header Field JMSDestination Set By Send Methodtrue
falsetechnologyactivetrue
JMS:SPEC:246.233.4.11Header Field JMSDeliveryMode Set By Send Methodtrue
falsetechnologyactivetrue
JMS:SPEC:246.333.4.11Header Field JMSExpiration Set By Send Methodtrue
falsetechnologyactivetrue
JMS:SPEC:246.433.4.11Header Field JMSPriority Set By Send Methodtrue
falsetechnologyactivetrue
JMS:SPEC:246.533.4.11Header Field JMSMessageID Set By Send Methodtrue
falsetechnologyactivetrue
JMS:SPEC:246.633.4.11Header Field JMSTimestamp Set By Send Methodtrue
falsetechnologyactivetrue
JMS:SPEC:246.733.4.11Header Field JMSCorrelationID Set By Clienttrue
falsetechnologyactivetrue
JMS:SPEC:246.833.4.11Header Field JMSReplyTo Set By Clienttrue
falsetechnologyactivetrue
JMS:SPEC:246.933.4.11Header Field JMSType Set By Clienttrue
falsetechnologyactivetrue
JMS:SPEC:246.1033.4.11Header Field JMSRedelivered Set By Providertrue
falsetechnologyactivetrue
JMS:SPEC:246.1133.4.11Header Field JMSDeliveryTime Set By Providertrue
falsetechnologyactivetrue
JMS:SPEC:1833.4.12JMS permits an administrator to configure JMS to override the client-specified values for JMSDeliveryMode, JMSExpiration and JMSPriority. If this is done, the header field value must reflect the administratively specified value.true
truetechnologyactivefalse
JMS:SPEC:25633.4.13When a message is sent, its delivery time is calculated as the sum of the delivery delay value specified on the send method and the current GMT value. On return from the send method, the message's JMSDeliveryTime header field contains this value. When a message is received its JMSDeliveryTime header field contains this same value. A message's delivery time is the earliest time when a provider may make the message visible on the target destination and available for delivery to consumers. Clients must not receive messages before the delivery time is reached.true
falsetechnologyactivetrue
JMS:SPEC:933.5.1Property names must obey the rules for a message selector identifier.true
truetechnologyactivefalse
JMS:SPEC:2033.5.2Property Valuestrue
falsetechnologyactivetrue
JMS:SPEC:20.133.5.2Property values can be booleantrue
falsetechnologyactivetrue
JMS:SPEC:20.233.5.2Property values can be bytetrue
falsetechnologyactivetrue
JMS:SPEC:20.333.5.2Property values can be shorttrue
falsetechnologyactivetrue
JMS:SPEC:20.433.5.2Property values can be inttrue
falsetechnologyactivetrue
JMS:SPEC:20.533.5.2Property values can be longtrue
falsetechnologyactivetrue
JMS:SPEC:20.633.5.2Property values can be floattrue
falsetechnologyactivetrue
JMS:SPEC:20.733.5.2Property values can be doubletrue
falsetechnologyactivetrue
JMS:SPEC:20.833.5.2Property values can be Stringtrue
falsetechnologyactivetrue
JMS:SPEC:1933.5.3Property values are set prior to sending a message.true
falsetechnologyactivetrue
JMS:SPEC:2133.5.3When a client receives a message, its properties are in read-only mode. If a client attempts to set properties at this point, a MessageNotWriteableException is thrown.true
falsetechnologyactivetrue
JMS:SPEC:2233.5.4Properties support the following conversion table. The marked cases must be supported. The unmarked cases must throw the JMS MessageFormatException.true
falsetechnologyactivetrue
JMS:SPEC:22.133.5.4Conversion of property values from type boolean to type boolean must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:22.233.5.4Conversion of property values from type boolean to types byte, short, int, long, float, and double must throw the JMS MessageFormatException.true
falsetechnologyactivetrue
JMS:SPEC:22.333.5.4Conversion of property values from type boolean to type String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:22.433.5.4Conversion of property values from type byte to type byte, short, int, long, and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:22.533.5.4Conversion of property values from type byte to type boolean, float and double must throw the JMS MessageFormatException.true
falsetechnologyactivetrue
JMS:SPEC:22.633.5.4Conversion of property values from type short to type short, int, long, and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:22.733.5.4Conversion of property values from type short to type boolean, byte, float and double must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:22.833.5.4Conversion of property values from type int to type int, long, and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:22.933.5.4Conversion of property values from type int to type boolean, byte, short, float and double must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:22.1033.5.4Conversion of property values from type long to type long and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:22.1133.5.4Conversion of property values from type long to type boolean, byte, short, int, float and double must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:22.1233.5.4Conversion of property values from type float to type float, double and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:22.1333.5.4Conversion of property values from type float to type boolean, byte, short, int and long must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:22.1433.5.4Conversion of property values from type double to type double and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:22.1533.5.4Conversion of property values from type double to type boolean, byte, short, int, long and float must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:22.1633.5.4Conversion of property values from type String to type boolean, byte, short, int, long, float, double and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:2333.5.4The String to numeric conversions must throw the java.lang.NumberFormatException if the numeric's valueOf() method does not accept the String value as a valid representation.true
falsetechnologyactivetrue
JMS:SPEC:2433.5.4Attempting to read a null value as a Java primitive type must be treated as calling the primitive's corresponding valueOf(String) conversion method with a null value.true
falsetechnologyactivetrue
JMS:SPEC:2533.5.5The setObjectProperty method accepts values of Boolean, Byte, Short, Integer, Long, Float, Double and String. An attempt to use any other class must throw a JMS MessageFormatException.true
falsetechnologyactivetrue
JMS:SPEC:2633.5.5The getObjectProperty method only returns values of null, Boolean, Byte, Short, Integer, Long, Float, Double and String. true
falsetechnologyactivetrue
JMS:SPEC:1033.5.5A null value is returned (by the getObjectProperty method) if a property by the specified name does not exist.true
falsetechnologyactivetrue
JMS:SPEC:2733.5.6To iterate through a message's property values, use getPropertyNames to retrieve a property name enumeration and then use the various property get methods to retrieve their values.true
falsetechnologyactivetrue
JMS:SPEC:2833.5.7A message's properties are deleted by the clearProperties method. This leaves the message with an empty set of properties. New property entries can then be both created and read. true
falsetechnologyactivetrue
JMS:SPEC:2933.5.7Clearing a message's property entries does not clear the value of its body.true
falsetechnologyactivetrue
JMS:SPEC:3433.5.9JMS Defined Propertiestrue
falsetechnologyactivetrue
JMS:SPEC:3133.5.9The Enumeration ConnectionMetaData.getJMSXPropertyNames() method returns the names of the JMSX properties supported by a connection.true
falsetechnologyactivetrue
JMS:SPEC:3233.5.9JMSXGroupID and JMSXGroupSeq are standard properties clients should use if they want to group messages. All providers must support them.true
falsetechnologyactivetrue
JMS:SPEC:3333.5.9JMSX properties set by the provider on send are available to both the producer and the consumers of the message. JSMX properties set by the provider on receive are available only to the consumers.true
falsetechnologyactivefalse
JMS:SPEC:34.133.5.9JMSX property JMSXUserID set by provider on send with value type Stringtrue
falsetechnologyactivefalse
JMS:SPEC:34.233.5.9JMSX property JMSXAppID set by provider on send with value type Stringtrue
falsetechnologyactivefalse
JMS:SPEC:34.333.5.9JMSX property JMSXDeliveryCount set by provider on receive with value type inttrue
falsetechnologyactivetrue
JMS:SPEC:34.433.5.9JMSX property JMSXGroupID set by client with value type Stringtrue
falsetechnologyactivetrue
JMS:SPEC:34.533.5.9JMSX property JMSXGroupSeq set by client with value type inttrue
falsetechnologyactivetrue
JMS:SPEC:34.633.5.9JMSX property JMSXProducerTXID set by provider on send with value type Stringtrue
falsetechnologyactivefalse
JMS:SPEC:34.733.5.9JMSX property JMSXConsumerTXID set by provider on receive with value type Stringtrue
falsetechnologyactivefalse
JMS:SPEC:34.833.5.9JMSX property JMSXRcvTimestamp set by provider on receive with value type longtrue
falsetechnologyactivefalse
JMS:SPEC:34.933.5.9JMSX property JMSXState set by provider with value type inttrue
falsetechnologyactivefalse
JMS:SPEC:3533.5.10JMS reserves the JMS_*vendor_name* property name prefix for provider-specific properties. Each provider defines their own value of vendor_name.true
falsetechnologyactivefalse
JMS:SPEC:25733.5.11When a client receives a message the mandatory JMS-defined message property JMSXDeliveryCount will be set to the number of times the message has been delivered. The first time a message is received it will be set to 1, so a value of 2 or more means the message has been redelivered. If the JMSRedelivered message header value is set then the JMSXDeliveryCount property must always be 2 or more. See section 3.4.7 "JMSRedelivered" for more information about the JMSRedelivered message header. The purpose of the JMSXDeliveryCount property is to allow consuming applications to identify whether a particular message is being repeatedly redelivered and take appropriate action. The value of the JMSXDeliveryCount property is not guaranteed to be exactly correct. The JMS provider is not expected to persist this value to ensure that its value is not lost in the event of a failure.true
falsetechnologyactivetrue
JMS:SPEC:3633.8.1.1A message selector is a String whose syntax is based on a subset of the SQL92 * conditional expression syntax.true
falsetechnologyactivetrue
JMS:SPEC:3733.8.1.1If the value of a message selector is an empty string, the value is treated as a null and indicates that there is no message selector for the message consumer.true
falsetechnologyactivetrue
JMS:SPEC:3833.8.1.1A JMS message selector allows a client to specify, by message header, the messages it's interested in. Only messages whose headers and properties match the selector are delivered.true
falsetechnologyactivetrue
JMS:SPEC:3933.8.1.1A selector can contain: " Literals: A string literal is enclosed in single quotes, with an included single quote represented by doubled single quote; for example, literal and literal 's. Like Java String literals, these use the Unicode character encoding. true
falsetechnologyactivetrue
JMS:SPEC:4033.8.1.1A selector can contain: " Literals: An exact numeric literal is a numeric value without a decimal point, such as 57, -957, +62; numbers in the range of Java long are supported. Exact numeric literals use the Java integer literal syntax. true
falsetechnologyactivetrue
JMS:SPEC:4133.8.1.1A selector can contain: " Literals: An approximate numeric literal is a numeric value in scientific notation, such as 7E3 and -57.9E2, or a numeric value with a decimal, such as 7., -95. 7, and +6.2; numbers in the range of Java double are supported. Approximate literals use the Java floating-point literal syntax.true
falsetechnologyactivetrue
JMS:SPEC:4233.8.1.1A selector can contain: " Literals: The boolean literals TRUE and FALSE.true
falsetechnologyactivetrue
JMS:SPEC:4333.8.1.1An identifier is an unlimited-length character sequence that must begin with a Java identifier start character; all following characters must be Java identifier part characters. An identifier start character is any character for which the method Character.isJavaIdentifierStart returns true. This includes _ and $ . An identifier part character is any character for which the method Character.isJavaIdentifierPart returns true.true
falsetechnologyactivetrue
JMS:SPEC:4433.8.1.1Identifiers cannot be the names NULL, TRUE, or FALSE.true
falsetechnologyactivetrue
JMS:SPEC:4533.8.1.1Identifiers cannot be NOT, AND, OR, BETWEEN, LIKE, IN, IS, or ESCAPE.true
falsetechnologyactivetrue
JMS:SPEC:4633.8.1.1Identifiers are either header field references or property references. The type of a property value in a message selector corresponds to the type used to set the property. If a property that does not exist in a message is referenced, its value is NULL.true
falsetechnologyactivetrue
JMS:SPEC:4733.8.1.1The conversions that apply to the get methods for properties do not apply when a property is used in a message selector expression. For example, suppose you set a property as a string value, as in the following: myMessage.setStringProperty("NumberOfOrders", "2"); The following expression in a message selector would evaluate to false, because a string cannot be used in an arithmetic expression: "NumberOfOrders > 1"true
falsetechnologyactivetrue
JMS:SPEC:4833.8.1.1Identifiers are case sensitive.true
falsetechnologyactivetrue
JMS:SPEC:4933.8.1.1Message header field references are restricted to JMSDeliveryMode, JMSPriority, JMSMessageID, JMSTimestamp, JMSCorrelationID, and JMSType. JMSMessageID, JMSCorrelationID, and JMSType values may be null and if so are treated as a NULL value.true
falsetechnologyactivetrue
JMS:SPEC:5333.8.1.1Whitespace is the same as that defined for Java: space, horizontal tab, form feed and line terminator.true
falsetechnologyactivetrue
JMS:SPEC:5433.8.1.1A selector is a conditional expression; a selector that evaluates to true matches; a selector that evaluates to false or unknown does not match.true
falsetechnologyactivetrue
JMS:SPEC:5533.8.1.1Arithmetic expressions are composed of themselves, arithmetic operations, identifiers with numeric values, and numeric literals.true
falsetechnologyactivetrue
JMS:SPEC:5633.8.1.1Conditional expressions are composed of themselves, comparison operations, logical operations, identifiers with boolean values, and boolean literals.true
falsetechnologyactivetrue
JMS:SPEC:5733.8.1.1Standard bracketing () for ordering expression evaluation is supported.true
falsetechnologyactivetrue
JMS:SPEC:5833.8.1.1Logical operators in precedence order: NOT, AND, ORtrue
falsetechnologyactivetrue
JMS:SPEC:5933.8.1.1Comparison operators: =, >, >=, <, <=, <> (not equal)true
falsetechnologyactivetrue
JMS:SPEC:6033.8.1.1Only like type values can be compared. One exception is that it is valid to compare exact numeric values and approximate numeric values (the type conversion required is defined by the rules of Java numeric promotion). If the comparison of non-like type values is attempted, the value of the operation is false. If either of the type values evaluates to NULL, the value of the expression is unknown.true
falsetechnologyactivetrue
JMS:SPEC:6133.8.1.1String and Boolean comparison is restricted to = and <>. Two strings are equal if and only if they contain the same sequence of characters.true
falsetechnologyactivetrue
JMS:SPEC:6233.8.1.1Arithmetic operators in precedence order: +, - (unary) *, / (multiplication and division) +, - (addition and subtraction)true
falsetechnologyactivetrue
JMS:SPEC:6333.8.1.1Arithmetic operations must use Java numeric promotion.true
falsetechnologyactivetrue
JMS:SPEC:6433.8.1.1arithmetic-expr1 [NOT] BETWEEN arithmetic-expr2 and arithmetic-expr3 (comparison operator) age BETWEEN 15 AND 19 is equivalent to age >= 15 AND age <= 19 age NOT BETWEEN 15 AND 19 is equivalent to age < 15 OR age > 19 true
falsetechnologyactivetrue
JMS:SPEC:6533.8.1.1identifier [NOT] IN (string-literal1, string-literal2,...) (comparison operator where identifier has a String or NULL value) Country IN ( UK , US , France ) is true for UK and false for Peru ; it is equivalent to the expression (Country = UK ) OR (Country = US ) OR (Country = France ) Country NOT IN ( UK , US , France ) is false for UK and true for Peru ; it is equivalent to the expression NOT ((Country = UK ) OR (Country = US ) OR (Country = France )) If identifier of an IN or NOT IN operation is NULL, the value of the operation is unknown.true
falsetechnologyactivetrue
JMS:SPEC:6633.8.1.1identifier [NOT] LIKE pattern-value [ESCAPE escape-character] (comparison operator, where identifier has a String value; pattern-value is a string literal where _ stands for any single character; % stands for any sequence of characters, including the empty sequence, and all other characters stand for themselves. The optional escape-character is a single-character string literal whose character is used to escape the special meaning of the _ and % in pattern-value.)true
falsetechnologyactivetrue
JMS:SPEC:6733.8.1.1identifier IS NULL (comparison operator that tests for a null header field value or a missing property value)true
falsetechnologyactivetrue
JMS:SPEC:6833.8.1.1identifier IS NOT NULL (comparison operator that tests for the existence of a non-null header field value or property value)true
falsetechnologyactivetrue
JMS:SPEC:6933.8.1.1JMS providers are required to verify the syntactic correctness of a message selector at the time it is presented. A method providing a syntactically incorrect selector must result in a JMS InvalidSelectorException.true
falsetechnologyactivetrue
JMS:SPEC:24733.8.1.1Predefined selector literals and operator names are written here in upper case; however, they are case insensitive.true
falsetechnologyactivetrue
JMS:SPEC:24833.8.1.2The Definition of the AND Operatortrue
falsetechnologyactivetrue
JMS:SPEC:248.133.8.1.2TRUE AND TRUE = TRUEtrue
falsetechnologyactivetrue
JMS:SPEC:248.233.8.1.2TRUE AND FALSE = FALSEtrue
falsetechnologyactivetrue
JMS:SPEC:248.333.8.1.2TRUE AND UNDEFINED = UNDEFINEDtrue
falsetechnologyactivetrue
JMS:SPEC:248.433.8.1.2FALSE AND FALSE = FALSEtrue
falsetechnologyactivetrue
JMS:SPEC:248.533.8.1.2FALSE AND FALSE = FALSEtrue
falsetechnologyactivetrue
JMS:SPEC:248.633.8.1.2FALSE AND UNDEFINED = FALSEtrue
falsetechnologyactivetrue
JMS:SPEC:248.733.8.1.2UNDEFINED AND TRUE = UNDEFINEDtrue
falsetechnologyactivetrue
JMS:SPEC:248.833.8.1.2UNDEFINED AND FALSE = FALSEtrue
falsetechnologyactivetrue
JMS:SPEC:248.933.8.1.2UNDEFINED AND UNDEFINED = UNDEFINEDtrue
falsetechnologyactivetrue
JMS:SPEC:24933.8.1.2The Definition of the OR Operatortrue
falsetechnologyactivetrue
JMS:SPEC:249.133.8.1.2TRUE OR TRUE = TRUEtrue
falsetechnologyactivetrue
JMS:SPEC:249.233.8.1.2TRUE OR FALSE = TRUEtrue
falsetechnologyactivetrue
JMS:SPEC:249.333.8.1.2TRUE OR UNDEFINED = TRUEtrue
falsetechnologyactivetrue
JMS:SPEC:249.433.8.1.2FALSE OR TRUE = TRUEtrue
falsetechnologyactivetrue
JMS:SPEC:249.533.8.1.2FALSE OR FALSE = FALSEtrue
falsetechnologyactivetrue
JMS:SPEC:249.633.8.1.2FALSE OR UNDEFINED = UNDEFINEDtrue
falsetechnologyactivetrue
JMS:SPEC:249.733.8.1.2UNDEFINED OR TRUE = TRUEtrue
falsetechnologyactivetrue
JMS:SPEC:249.833.8.1.2UNDEFINED OR FALSE = UNDEFINEDtrue
falsetechnologyactivetrue
JMS:SPEC:249.933.8.1.2UNDEFINED OR UNDEFINED = UNDEFINEDtrue
falsetechnologyactivetrue
JMS:SPEC:25033.8.1.2The Definition of the NOT Operatortrue
falsetechnologyactivetrue
JMS:SPEC:250.133.8.1.2NOT TRUE = FALSEtrue
falsetechnologyactivetrue
JMS:SPEC:250.233.8.1.2NOT FALSE = TRUEtrue
falsetechnologyactivetrue
JMS:SPEC:250.333.8.1.2NOT UNDEFINED = UNDEFINEDtrue
falsetechnologyactivetrue
JMS:SPEC:7033.10When a message is received, its header field values can be changed;true
falsetechnologyactivetrue
JMS:SPEC:7133.10A consumer can modify a received message after calling either the clearBody or clearProperties method to make the body or properties writable. If the consumer modifies a received message, and the message is subsequently redelivered, the redelivered message must be the original, unmodified message (except for headers and properties modified by the JMS provider as a result of the redelivery, such as the JMSRedelivered header and the JMSXDeliveryCount property).true
falsetechnologyactivetrue
JMS:SPEC:19733.11JMS provides five forms of message body. Each form is defined by a message interface: " StreamMessage - a message whose body contains a stream of Java primitive values. It is filled and read sequentially. " MapMessage - a message whose body contains a set of name-value pairs where names are Strings and values are Java primitive types. The entries can be accessed sequentially by enumerator or randomly by name. The order of the entries is undefined. " TextMessage - a message whose body contains a java.lang.String. The inclusion of this message type is based on our presumption that String messages will be used extensively. One reason for this is that XML will likely become a popular mechanism for representing the content of JMS messages. " ObjectMessage - a message that contains a Serializable Java object. If a collection of Java objects is needed, one of the collection classes provided in JDK 1.2 can be used. " BytesMessage - a message that contains a stream of uninterpreted bytes. This message type is for literally encoding a body to match an existing message format. In many cases, it will be possible to use one of the other, self-defining, message types instead. Although JMS allows the use of message properties with byte messages, they are typically not used, since the inclusion of properties may affect the format.true
falsetechnologyactivefalse
JMS:SPEC:7233.11.1The clearBody method of Message resets the value of the message body to the empty initial message value as set by the message type's create method provided by Session. Clearing a message's body does not clear its property entries.true
falsetechnologyactivetrue
JMS:SPEC:7333.11.2When a message is received, its body is read only. If an attempt is made to change the body, a MessageNotWriteableException must be thrown.true
falsetechnologyactivetrue
JMS:SPEC:73.133.11.2When a message is received, its body is read only. If its body is subsequently cleared, the body is in the same state as an empty body in a newly created message.true
falsetechnologyactivetrue
JMS:SPEC:7433.11.3Both StreamMessage and MapMessage support the same set of primitive data types. The types can be read or written explicitly using methods for each type. They may also be read or written generically as objects. true
falsetechnologyactivetrue
JMS:SPEC:7533.11.3Both StreamMessage and MapMessage support the following conversion table. The marked cases must be supported. The unmarked cases must throw a JMS MessageFormatException.true
falsetechnologyactivetrue
JMS:SPEC:75.133.11.3Conversion from type boolean to type boolean and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:75.233.11.3Conversion from type boolean to types byte, short, char, int, long, float, double and byte[] must throw the JMS MessageFormatException.true
falsetechnologyactivetrue
JMS:SPEC:75.333.11.3Conversion from type byte to type byte, short, int, long, and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:75.433.11.3Conversion from type byte to type boolean, char, float, double and byte[] must throw the JMS MessageFormatException.true
falsetechnologyactivetrue
JMS:SPEC:75.533.11.3Conversion from type short to type short, int, long, and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:75.633.11.3Conversion from type short to type boolean, byte, char, float, double and byte[] must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:75.733.11.3Conversion from type char to type char and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:75.833.11.3Conversion from type char to type boolean, byte, short, int, long, float, double and byte[] must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:75.933.11.3Conversion from type int to type int, long, and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:75.1033.11.3Conversion from type int to type boolean, byte, short, char, float, double and byte[] must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:75.1133.11.3Conversion from type long to type long and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:75.1233.11.3Conversion from type long to type boolean, byte, short, char, int, float, double and byte[] must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:75.1333.11.3Conversion from type float to type float, double and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:75.1433.11.3Conversion from type float to type boolean, byte, short, char, int, long and byte[] must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:75.1533.11.3Conversion from type double to type double and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:75.1633.11.3Conversion from type double to type boolean, byte, short, char, int, long, float and byte[] must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:75.1733.11.3Conversion from type String to type boolean, byte, short, int, long, float, double and String must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:75.1833.11.3Conversion from type String to type char and byte[] must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:75.1933.11.3Conversion from type byte[] to type byte[] must be supportedtrue
falsetechnologyactivetrue
JMS:SPEC:75.2033.11.3Conversion from type byte[] to type boolean, byte, short, char, int, long, float, double and String must throw the JMS MessageFormatExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:7633.11.3The String to numeric conversions must throw a java.lang.NumberFormatException if the numeric's valueOf() method does not accept the String value as a valid representation.true
falsetechnologyactivetrue
JMS:SPEC:7733.11.3StreamMessage and MapMessage must implement the String to boolean conversion as specified by the valueOf(String) method of Boolean as defined by the Java language.true
falsetechnologyactivetrue
JMS:SPEC:7833.11.3Attempting to read a null value as a Java primitive type must be treated as calling the primitive's corresponding valueOf(String) conversion method with a null value.true
falsetechnologyactivetrue
JMS:SPEC:7933.11.3Since char does not support a String conversion, attempting to read a null value as a char must throw NullPointerException.true
falsetechnologyactivetrue
JMS:SPEC:8033.11.3Getting a MapMessage field for a field name that has not been set is handled as if the field exists with a null value.true
falsetechnologyactivetrue
JMS:SPEC:8133.11.3If a read method of StreamMessage or BytesMessage throws a MessageFormatException or NumberFormatException, the current position of the rea d pointer must not be incremented. A subsequent read must be capable of recovering from the exception by rereading the data as a d ifferent type. true
falsetechnologyactivetrue
JMS:SPEC:8233.11.4If a JMS client sends a StreamMessage or MapMessage, it must be translated by a receiving JMS provider into an equivalent StreamMessage or MapMessage. When passed between JMS clients, a message must always retain its full form. For instance, a message sent as MapMessage must not arrive at a JMS client as a BytesMessage.true
falsetechnologyactivetrue
JMS:SPEC:19033.11.4JMS provides five forms of message body. Each form is defined by a message interface: " StreamMessage - a message whose body contains a stream of Java primitive values. It is filled and read sequentially. " MapMessage - a message whose body contains a set of name-value pairs where names are Strings and values are Java primitive types. The entries can be accessed sequentially by enumerator or randomly by name. The order of the entries is undefined. " TextMessage - a message whose body contains a java.lang.String. The inclusion of this message type is based on our presumption that String messages will be used extensively. One reason for this is that XML will likely become a popular mechanism for representing the content of JMS messages. " ObjectMessage - a message that contains a Serializable Java object. If a collection of Java objects is needed, one of the collection classes provided in JDK 1.2 can be used. " BytesMessage - a message that contains a stream of uninterpreted bytes. This message type is for literally encoding a body to match an existing message format. In many cases, it will be possible to use one of the other, self-defining, message types instead. Although JMS allows the use of message properties with byte messages, they are typically not used, since the inclusion of properties may affect the format.true
falsetechnologyactivefalse
JMS:SPEC:8333.11.4If a JMS provider receives a message created by a native client, the provider should do its best to transform it into the best JMS message type. For instance, if it is a native stream message it should be transformed into a StreamMessage. If this is not possible, the provider is always able to transform it into a BytesMessage.false
falsetechnologyactivefalse
JMS:SPEC:8433.12A provider must be prepared to accept, from a client, a message whose implementation is not one of its own.true
falsetechnologyactivetrue
JMS:SPEC:8533.12The JMS message interfaces provide write/set methods for setting object values in a message body and message properties. All of these methods must be implemented to copy their input objects into the message. The value of an input object is allowed to be null and will return null when accessed. true
falsetechnologyactivetrue
JMS:SPEC:8633.12 The value of an input object is allowed to be null and will return null when accessed.true
falsetechnologyactivetrue
JMS:SPEC:86.133.12One exception to this (null input object) is that BytesMessage does not support the concept of a null stream, and attempting to write a null into it must throw java.lang.NullPointerException.true
falsetechnologyactivetrue
JMS:SPEC:8733.12If the foreign message implementation contains a JMSReplyTo header field that is set to a foreign destination implementation, the provider is not required to handle or preserve the value of this header field.false
falsetechnologyactivefalse
JMS:SPEC:8833.12The JMS message interfaces provide read/get methods for accessing objects in a message body and message properties. All of these methods must be implemented to return a copy of the accessed message objects.true
falsetechnologyactivetrue
JMS:SPEC:19155.1An administered object should not hold on to any remote resources. Its lookup should not use remote resources other than those used by JNDI itself.true
falsetechnologyactivefalse
JMS:SPEC:8955.2Destination objects support concurrent use.true
falsetechnologyactivetrue
JMS:SPEC:9055.3ConnectionFactory objects support concurrent use.true
falsetechnologyactivetrue
JMS:SPEC:9166.1Connection objects support concurrent use.true
falsetechnologyactivetrue
JMS:SPEC:9266.1.1When creating a connection, a client may specify its credentials as name/password. If no credentials are specified, the current thread's credentials are used. At this point, the JDK does not define the concept of a thread's default credentials; however, it is likely this will be defined in the near future. For now, the identity of the user under which the JMS client is running should be used.true
falsetechnologyactivefalse
JMS:SPEC:9366.1.2If one (the client identifier) does exist, an attempt to change it by setting it must throw a IllegalStateException.true
falsetechnologyactivetrue
JMS:SPEC:19866.1.2If a client explicitly does the set(the client identifier) it must do this immediately after creating the connection and before any other action on the connection is taken. true
falsetechnologyactivetrue
JMS:SPEC:9466.1.2After this point, setting the client identifier is a programming error that should throw an IllegalStateException.true
falsetechnologyactivetrue
JMS:SPEC:9566.1.2By definition, the client state identified by a client identifier can be in use by only one client at a time. A JMS provider must prevent concurrently executing clients from using it. The only use of a client identifier defined by JMS is its optional use in identifying a durable subscription.true
falsetechnologyactivefalse
JMS:SPEC:26266.1.2The only use of a client identifier defined identified by JMS is its optional use in identifying a durable subscription.true
falsetechnologyactivetrue
JMS:SPEC:9666.1.3A Connection can be started immediately and the setup can be done afterwards. Clients that do this must be prepared to handle asynchronous message delivery while they are still in the process of setting up.true
falsetechnologyactivefalse
JMS:SPEC:9766.1.3It is important to note that clients rely on the fact that no messages are delivered by a connection until it has been started. JMS providers must insure that this is the case.true
falsetechnologyactivetrue
JMS:SPEC:9866.1.3A MessageProducer can send messages while a Connection is stopped.true
falsetechnologyactivetrue
JMS:SPEC:9966.1.5Stopping a stopped connection and starting a started connection are ignored.true
falsetechnologyactivetrue
JMS:SPEC:10066.1.5A connection's delivery of incoming messages can be temporarily stopped using its stop() method. It can be restarted using its start() method. When the connection is stopped, delivery to all the connection's MessageConsumers is inhibited: synchronous receives block, and messages are not delivered to any message listeners.true
falsetechnologyactivetrue
JMS:SPEC:10166.1.5A stop method call must not return until delivery of messages has paused. This means a client can rely on the fact that none of its message listeners will be called and all threads of control waiting for receive 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 and return a null message while the connection is stopped. If any message listeners are running when stop is invoked, stop 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.true
falsetechnologyactivefalse
JMS:SPEC:10266.1.8If one or more of the connection's session's message listeners is processing a message at the point 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.true
falsetechnologyactivefalse
JMS:SPEC:10366.1.8When connection close 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.true
falsetechnologyactivefalse
JMS:SPEC:10466.1.8Closing a connection must roll back the transactions in progress on its transacted sessions(The term transacted session refers to the case where a session's commit and rollback methods are used to demarcate a transaction local to the session. 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.). true
falsetechnologyactivetrue
JMS:SPEC:10566.1.8Closing a connection does NOT force an acknowledgement of client-acknowledged sessions.true
falsetechnologyactivetrue
JMS:SPEC:10666.1.8 Invoking the acknowledge method of a received message from a closed connection's sessions must throw an IllegalStateExceptiontrue
falsetechnologyactivetrue
JMS:SPEC:10766.1.8Once a connection has been closed, an attempt to use it or its sessions or their message consumers and producers must throw an IllegalStateException.true
falsetechnologyactivetrue
JMS:SPEC:20166.1.8Once a connection has been closed, calls to the close method of its sessions or their message consumers and producers must be ignored. true
falsetechnologyactivetrue
JMS:SPEC:19966.1.8Once a connection has been closed, it is valid to continue to use message objects created or received via the connection, with the exception of a received message's acknowledge method.true
falsetechnologyactivetrue
JMS:SPEC:10866.1.8Closing a closed connection must NOT throw an exception.true
falsetechnologyactivetrue
JMS:SPEC:25166.1.8If a connection is closed, there is no need to close its constituent sessions, message producers, messages consumers or queue browsers. The connection close is sufficient to signal the JMS provider that all resources for the connection should be released. The Connection interface extends the java.lang.AutoCloseable interface. This means that applications which create the connection in a try-with-resources statement do not need to call the close method when the connection is no longer needed. Instead the connection will be closed automatically at the end of the statement. The use of a try-with-resources statement also simplifies the handling of any exceptions thrown by the close methodtrue
falsetechnologyactivetrue
JMS:SPEC:25866.1.8A 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 javax.jms.IllegalStateException.true
falsetechnologyactivetrue
JMS:SPEC:18766.1.7If a JMS provider detects a problem with a connection, it will inform the connection's ExceptionListener, if one has been registered. To retrieve an ExceptionListener, the connection's getExceptionListerer() method is called. It returns the ExceptionListener for the connection.true
falsetechnologyactivetrue
JMS:SPEC:20066.1.7If a JMS provider detects a problem with a connection, it will inform the connection's ExceptionListener, if one has been registered. To retrieve an ExceptionListener, the connection's getExceptionListerer() method is called. If no ExceptionListener is registered, the value null is returned.true
falsetechnologyactivetrue
JMS:SPEC:10966.1.7The exceptions delivered to ExceptionListener are those that have no other place to be reported. If an exception is thrown on a JMS call it, by definition, must not be delivered to an ExceptionListener (in other words, ExceptionListener is not for the purpose of monitoring all exceptions thrown by a connection). There is no restriction on the use of the JMS API by the listener's onException method. However since that method will only be called when there is a serious problem with the connection, any attempt to use that connection may fail and cause exceptions.true
falsetechnologyactivefalse
JMS:SPEC:11066.2.15Session close terminates all message processing on the session. It must handle the shutdown of pending receives by the session's consumers or a running message listenertrue
falsetechnologyactivefalse
JMS:SPEC:11166.2.15Closing a transacted session must roll back its transaction in progress.(The term transacted session refers to the case where a session's commit and rollback methods are used to demarcate a transaction local to the session. 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.) true
falsetechnologyactivetrue
JMS:SPEC:11366.2.15Once a session has been closed, an attempt to use it or its message consumers and producers must throw an IllegalStateException (calls to the close method of these objects must be ignored). It is valid to continue to use message objects created or received via the session, with the exception of a received message's acknowledge method.true
falsetechnologyactivetrue
JMS:SPEC:11466.2.15Closing a closed session must NOT throw an exception.true
falsetechnologyactivetrue
JMS:SPEC:25266.2.15When a session is closed, there is no need to close its constituent message producers, message consumers or queue browsers. The session close is sufficient to signal the JMS provider that all resources for the session should be released. Note that closing a connection will cause any sessions created from it to be closed, so, although a session should be closed when no longer needed, there is no need to close a session immediately prior to closing its connection. The Session interface extends the java.lang.AutoCloseable interface. This means that applications which create the session in a try-with-resources statement do not need to call the close method when the connection is no longer needed. Instead the session will be closed automatically at the end of the statement. The use of a try-with-resources statement also simplifies the handling of any exceptions thrown by the close method.true
falsetechnologyactivetrue
JMS:SPEC:25966.2.15A message listener must not attempt to close its own session as this would lead to deadlock. The JMS provider must detect this and throw a javax.jms.IllegalStateException.true
falsetechnologyactivetrue
JMS:SPEC:26066.2.15Note that closing a connection will cause any sessions created from it to be closed, so, although a session should be closed when no longer needed, there is no need to close a session immediately prior to closing its connection. The Session interface extends the java.lang.AutoCloseable interface. This means that applications which create the session in a try-with-resources statement do not need to call the close method when the connection is no longer needed. Instead the session will be closed automatically at the end of the statement. The use of a try-with-resources statement also simplifies the handling of any exceptions thrown by the close method.true
falsetechnologyactivetrue
JMS:SPEC:11566.2.1A session can create and service multiple MessageProducers and MessageConsumers.true
falsetechnologyactivetrue
JMS:SPEC:11666.2.1Although a session may create multiple producers and consumers, they are restricted to serial use. In effect, only a single logical thread of control can use them.true
falsetechnologyactivefalse
JMS:SPEC:11766.2.2Temporary destinations ( TemporaryQueue or TemporaryTopic objects) are destinations that are system-generated uniquely for their connection. Only their own connection is allowed to create MessageConsumers for them.true
falsetechnologyactivetrue
JMS:SPEC:11866.2.2Each TemporaryQueue or TemporaryTopic object is unique. It cannot be copied.true
falsetechnologyactivefalse
JMS:SPEC:12066.2.5Sessions are designed for serial use by one thread at a time. The only exception to this occurs during the orderly shutdown of the session or its connection.true
falsetechnologyactivetrue
JMS:SPEC:12166.2.5Another consequence is that a connection must be in stopped mode to set up a session with more than one message listener. The reason is that when a connection is actively delivering messages, once the first message listener for a session has been registered, the session is now controlled by the thread of control that delivers messages to it. At this point a client thread of control cannot be used to further configure the session.true
falsetechnologyactivetrue
JMS:SPEC:12266.2.7When a transaction commits, its atomic unit of input is acknowledged and its associated atomic unit of output is sent.(The term transacted session refers to the case where a session's commit and rollback methods are used to demarcate a transaction local to the session. 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.)true
falsetechnologyactivetrue
JMS:SPEC:12366.2.7If a transaction rollback is done, its produced messages are destroyed and its consumed messages are automatically recovered.true
falsetechnologyactivetrue
JMS:SPEC:12466.2.7A transaction is completed using its session's commit() or rollback() method.true
falsetechnologyactivetrue
JMS:SPEC:12566.2.7The completion of a session's current transaction automatically begins the next.true
falsetechnologyactivetrue
JMS:SPEC:19266.2.8JMS does not require that a provider support distributed transactions; however, it does require that if a provider supplies this support, it should be done via the JTA XAResource API.false
falsetechnologyactivetrue
JMS:SPEC:12666.2.14For Pub/Sub, if two sessions each have a TopicSubscriber that subscribes to the same Topic, each subscriber is given each message. Delivery to one subscriber does not block if the other gets behind.true
falsetechnologyactivetrue
JMS:SPEC:12766.2.9.1JMS defines that messages sent by a session to a destination must be received in the order in which they were sent (see Section 6.2.9.2, for a few qualifications). This defines a partial ordering constraint on a session's input message stream.true
falsetechnologyactivetrue
JMS:SPEC:12866.2.9.2If both PERSISTENT and NON_PERSISTENT messages are sent to a destination, order is only guaranteed within delivery mode. That is, a later NON_PERSISTENT message may arrive ahead of an earlier PERSISTENT message; however, it will never arrive ahead of an earlier NON_PERSISTENT message with the same priority.true
falsetechnologyactivetrue
JMS:SPEC:19366.2.9.2A client may use a transacted session to group its sent messages into atomic units (the producer component of a JMS transaction). A transaction's order of messages to a particular destination is significant. The order of sent messages across destinations is not significant. See Section 6.2.7, for more information.true
falsetechnologyactivetrue
JMS:SPEC:12966.2.10A session must set the redelivered flag and implement the JMSXDeliveryCount of messages it redelivers due to a recovery.true
falsetechnologyactivefalse
JMS:SPEC:13066.2.10If a session is transacted, message acknowledgment is handled automatically by commit, and recovery is handled automatically by rollback.true
falsetechnologyactivetrue
JMS:SPEC:13166.2.10CLIENT_ACKNOWLEDGE - With this option, a client acknowledges a message by calling the message's acknowledge method. Acknowledging a consumed message automatically acknowledges the receipt of all messages that have been delivered by its session.true
falsetechnologyactivetrue
JMS:SPEC:13266.2.10AUTO_ACKNOWLEDGE - With this option, the session automatically acknowledges a client's receipt of a message when it has either successfully returned from a call to receive or the MessageListener it has called to process the message successfully returns.true
falsetechnologyactivetrue
JMS:SPEC:19466.2.10A session's recover method is used to stop a session and restart it with its first unacknowledged message. In effect, the session's series of delivered messages is reset to the point after its last acknowledged message. The messages it now delivers may be different from those that were originally delivered due to message expiration and the arrival of higher-priority messages.true
falsetechnologyactivetrue
JMS:SPEC:13366.2.11A JMS provider must never deliver a second copy of an acknowledged message.true
falsetechnologyactivefalse
JMS:SPEC:13466.2.11When a client uses the AUTO_ACKNOWLEDGE mode, it is not in direct control of message acknowledgment. Since such clients cannot know for certain if a particular message has been acknowledged, they must be prepared for redelivery of the last consumed message. This can be caused by the client completing its work just prior to a failure that prevents the message acknowledgment from occurring. Only a session's last consumed message is subject to this ambiguity. The JMSRedelivered message header field will be set for a message redelivered under these circumstances.true
falsetechnologyactivefalse
JMS:SPEC:13566.2.12JMS providers must never produce duplicate messages. This means that a client that produces a message can rely on its JMS provider to insure that consumers of the message will receive it only once. No client error can cause a provider to duplicate a message.true
falsetechnologyactivefalse
JMS:SPEC:13666.2.13To receive messages asynchronously, a client registers an object that implements the JMS MessageListener interface with a MessageConsumer. In effect, a Session uses a single thread to run all its message listeners. While the thread is busy executing one listener, all other messages to be asynchronously delivered to the session must wait.true
falsetechnologyactivetrue
JMS:SPEC:13748.1.2A client can register an object that implements the JMS MessageListener interface with a MessageConsumer. As messages arrive for the consumer, the provider delivers them by calling the listener's onMessage method. Messages that arrive for the consumer will be delivered in batches by calling the listener's onMessages method.true
falsetechnologyactivetrue
JMS:SPEC:13848.1.1A client can request the next message from a MessageConsumer using one of its receive methods.true
falsetechnologyactivetrue
JMS:SPEC:13977.1A client also has the option of creating a producer without supplying a destination. In this case, a destination must be input on every send operation.true
falsetechnologyactivetrue
JMS:SPEC:14077.6A client can specify a default delivery mode, priority, and time-to-live for messages sent by a producer. It(the client) can also specify delivery mode, priority, and time-to-live per message.true
falsetechnologyactivetrue
JMS:SPEC:25377.2The following methods on MessageProducer may be used to send a message synchronously: void send(Message message) void send(Destination destination, Message message) void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) void send(Message message, int deliveryMode, int priority, long timeToLive) These methods will block until the message has been sent. If necessary the call will block until a confirmation message has been received back from the JMS server. true
falsetechnologyactivetrue
JMS:SPEC:25477.3Clients may alternatively use the following methods which return immediately and use a separate thread to send the message and, if necessary, wait for a confirmation message back from the JMS server: send(Destination destination, Message message, CompletionListener completionListener) send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener) send(Message message, CompletionListener completionListener) send(Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener). 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 in the following sections.true
falsetechnologyactivetrue
JMS:SPEC:275.177.3.1After the send operation is complete, 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. The CompletionListener must not be invoked earlier than this.true
falsetechnologyactivefalse
JMS:SPEC:275.277.3.3If the same MessageProducer or JMSContext is used to send multiple messages then JMS message ordering requirements (see section 6.2.9 "Message order") 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.true
falsetechnologyactivefalse
JMS:SPEC:275.377.3.4If the session is transacted (uses a local transaction) then when the commit or rollback method is called the JMS provider must block until any incomplete send operations have been completed and all callbacks have returned before performing the commit or rollback. If the close method is called on the MessageProducer, Session, Connection or JMSContext object then the JMS provider must block until any incomplete send operations have been completed and all callbacks have returned before closing the object and returning.true
falsetechnologyactivefalse
JMS:SPEC:275.477.3.5An asynchronous send is not permitted in a Java EE EJB or web container. If the application component violates this restriction the send method may throw a JMSException or JMSRuntimeException (depending on the method signature).true
falsetechnologyactivefalse
JMS:SPEC:275.577.3.6JMS defines a number of message header fields and message properties which must be set by the "JMS provider on send". See section 3.4.11 "How message header values are set" and section 3.5.9 "JMS defined properties". 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. See also section 4.6.2.8 "Restrictions on the use of the Message object" below.true
falsetechnologyactivefalse
JMS:SPEC:275.677.3.7Applications that perform an asynchronous send must confirm to the threading restrictions defined in section 6.2.5". 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.true
falsetechnologyactivefalse
JMS:SPEC:275.777.3.8A session will only invoke one CompletionListener callback method at a time. For a given MessageProducer or JMSContext, callbacks 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.true
falsetechnologyactivefalse
JMS:SPEC:275.877.3.9Applications 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. See section 2.8 "Multi-threading". After the send method has returned, the application must not attempt to read the headers, properties or payload 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. A JMS provider may throw a 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
falsetechnologyactivefalse
JMS:SPEC:14177.7A JMS provider must deliver a NON_PERSISTENT message at-most-once. This means that it may lose the message, but it must not deliver it twice.true
falsetechnologyactivefalse
JMS:SPEC:14277.7A JMS provider must deliver a PERSISTENT message once-and-only-once. This means a JMS provider failure must not cause it to be lost, and it must not deliver it twice.true
falsetechnologyactivefalse
JMS:SPEC:14399.1Unacknowledged messages redelivered due to system failure must have the JMSRedelivered message header field set by the JMS provider.true
falsetechnologyactivefalse
JMS:SPEC:18599.2If an application attempts to call any of the methods listed below, the JMS providers must throw an IllegalStateException.true
falsetechnologyactivetrue
JMS:SPEC:185.199.2QueueConnection.createDurableConnectionConsumerfalse
falsetechnologyactivetrue
JMS:SPEC:185.299.2QueueSession.createDurableSubscribertrue
falsetechnologyactivetrue
JMS:SPEC:185.399.2QueueSession.createTemporayTopictrue
falsetechnologyactivetrue
JMS:SPEC:185.499.2QueueSession.createTopictrue
falsetechnologyactivetrue
JMS:SPEC:185.599.2QueueSession.unsubscribetrue
falsetechnologyactivetrue
JMS:SPEC:185.699.2TopicSession.createQueueBrowsertrue
falsetechnologyactivetrue
JMS:SPEC:185.799.2TopicSession.createQueuetrue
falsetechnologyactivetrue
JMS:SPEC:185.899.2TopicSession.createTemporaryQueuetrue
falsetechnologyactivetrue
JMS:SPEC:185.999.2QueueSession.createDurableConsumertrue
falsetechnologyactivetrue
JMS:SPEC:185.1099.2QueueSession.createSharedConsumertrue
falsetechnologyactivetrue
JMS:SPEC:26177.9A client can specify a delivery delay value in milliseconds for each message it sends. This value defines a message delivery time which is the sum of the message's delivery delay and the GMT it is sent (for transacted sends, this is the time the client sends the message, not the time the transaction is committed). A message's delivery time is the earliest time when a JMS provider may make the message visible on the target destination and available for delivery to consumers. The provider must not deliver messages before the delivery time has been reached. For more information on message delivery delay, see Section 3.4.13 "JMSDeliveryTime".true
falsetechnologyactivetrue
JMS:SPEC:19544.1.1This chapter describes the semantics of the Point-to-Point model. These semantics must be supported regardless of whether the client programmer uses the PTP domain-specific interfaces, or the common interfaces that are described in Chapter 4, JMS Common Facilities. The following table shows the interfaces that are specific to the PTP domain and the JMS common interfaces.The common interfaces are preferred for creating JMS client programs, because they are domain-independent.true
falsetechnologyactivetrue
JMS:SPEC:14444.1.4A TemporaryQueue is a unique Queue object created for the duration of a Connection or QueueConnection. It is a system-defined queue that can be consumed only by the Connection or QueueConnection that created it.true
falsetechnologyactivetrue
JMS:SPEC:14522.9If there are messages that have been received but not acknowledged when a QueueSession terminates, these messages must be retained and redelivered when a consumer next accesses the queue.true
falsetechnologyactivetrue
JMS:SPEC:14622.9If a QueueReceiver specifies a message selector, the messages that are not selected remain on the queue.true
falsetechnologyactivetrue
JMS:SPEC:14722.9Only QueueReceivers without a message selector will read messages in message producer order.true
falsetechnologyactivetrue
JMS:SPEC:14844.1.5A client uses a QueueBrowser to look at messages on a queue without removing them.true
falsetechnologyactivetrue
JMS:SPEC:14944.1.5The browse methods (of a QueueBrowser) return a java.util.Enumeration that is used to scan the queue's messages. It may be an enumeration of the entire content of a queue, or it may contain only the messages matching a message selector.true
falsetechnologyactivetrue
JMS:SPEC:27344.1.6The QueueRequestor constructor is given a QueueSession and a destination queue. It creates a TemporaryQueue for the responses and provides a request() method that sends the request message and waits for its reply.true
falsetechnologyactivetrue
JMS:SPEC:15044.1.7It(Queue) is always available to hold messages sent to it, whether or not the client that consumes its messages is active.true
falsetechnologyactivetrue
JMS:SPEC:19644.1This chapter describes the semantics of the Pub/Sub model. These semantics must be supported regardless of whether the client programmer uses the Pub/Sub domain interfaces, or the JMS common interfaces that are described in Chapter 4, JMS Common Facilities. The following table shows the interfaces that are specific to the Pub/Sub domain, and the JMS common interfaces. It is preferable to use the common interfaces when creating client programs, as they are domain-independent.true
falsetechnologyactivetrue
JMS:SPEC:15144.2.1All JMS providers must be able to run JMS applications that dynamically create and delete durable subscriptions. Some JMS providers may, in addition, provide facilities to administratively configure durable subscriptions. If a durable subscription has been administratively configured, it is valid for it to silently override the subscription specified by the client.true
falsetechnologyactivefalse
JMS:SPEC:15244.2.1Nondurable subscriptions last for the lifetime of their subscriber object. This means that a client will only see the messages published on a topic while its subscriber is active. If the subscriber is not active, it is missing messages published on its topic.true
falsetechnologyactivetrue
JMS:SPEC:15344.2.1A durable subscriber registers a durable subscription with a unique identity that is retained by JMS. Subsequent subscriber objects with the same identity resume the subscription in the state it was left in by the prior subscriber.true
falsetechnologyactivetrue
JMS:SPEC:15444.2.1If there is no active subscriber for a durable subscription, JMS retains the subscription's messages until they are received by the subscription or until they expire.true
falsetechnologyactivetrue
JMS:SPEC:15544.2.7A TemporaryTopic is a unique Topic object created for the duration of a Connection or TopicConnection. true
falsetechnologyactivefalse
JMS:SPEC:24344.2.7It(TemporaryTopic) is a system-defined Topic that can be consumed only by the Connection or TopicConnection that created it. By definition, it does not make sense to create a durable subscription to a temporary topic. To do this is a programming error that may or may not be detected by a JMS provider.true
falsetechnologyactivefalse
JMS:SPEC:24222.9 A TopicConnection is an active connection to a JMS Pub/Sub provider. A client uses a TopicConnection to create one or more TopicSessions for producing and consuming messages. true
falsetechnologyactivefalse
JMS:SPEC:15622.9If there are messages that have been received but not acknowledged when a TopicSession terminates, a durable TopicSubscriber must retain and redeliver them; a nondurable subscriber need not do so.true
falsetechnologyactivetrue
JMS:SPEC:15822.9A client uses a TopicPublisher for publishing messages on a topic.true
falsetechnologyactivetrue
JMS:SPEC:15944.2.3Ordinary TopicSubscribers are not durable. They only receive messages that are published while they are active.true
falsetechnologyactivetrue
JMS:SPEC:16064.2.3Messages filtered out by a subscriber's message selector will never be delivered to the subscriber. From the subscriber's perspective, they simply don't exist.true
falsetechnologyactivetrue
JMS:SPEC:16144.2.3In 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.true
falsetechnologyactivetrue
JMS:SPEC:16244.2.3A client consumes messages from a topic by creating a subscription on that topic, and creating a MessageConsumer or TopicSubscriber on that subscription. In general, a subscription will receive a copy of every message sent to the topic. However if a message selector is specified then only those messages whose properties match the message selector will be added to the subscription. In addition, the noLocal flag may be specified when a MessageConsumer or TopicSubscriber is created. The effect of setting this flag depends on the type of subscription and is defined in the following sections. Each copy of the message is treated as a completely separate message. Work done on one copy has no effect on any other; acknowledging one does not acknowledge any other; one message may be delivered immediately, while another waits for its consumer to process messages ahead of it. Subscriptions may be durable or non-durable. A non-durable subscription exists only so long as a MessageConsumer or TopicSubscriber object exists to consume messages from it. A non-durable subscription may be either unshared or shared. An unshared non-durable subscription does not have a name and may have only a single MessageConsumer or TopicSubscriber object associated with it. It is created automatically when the MessageConsumer or TopicSubscriber object is created. It is not persisted and is deleted automatically when it is closed. See section 6.11.1 "Unshared non-durable subscriptions" below. A shared non-durable subscription is identified by name, which may be used to associate several MessageConsumer or TopicSubscriber objects with it. It is created automatically when the first MessageConsumer or TopicSubscriber object is created. It is not persisted and is deleted automatically when the last MessageConsumer or TopicSubscriber object is closed. See section 6.11.2 "Shared non-durable subscriptions" below. A durable subscription is identified by a name and an optional client identifier, which may be used to associate several MessageConsumer or TopicSubscriber objects with it. A durable subscription is created automatically when the first MessageConsumer or TopicSubscriber object is created. It is persisted and continues to exist until explicitly deleted, even if there are no MessageConsumer or TopicSubscriber objects consuming messages from it. See section 4.2.3.3 "Durable subscriptions" below.true
falsetechnologyactivetrue
JMS:SPEC:26688.3.1An unshared non-durable subscription is the simplest way to consume messages from a topic. An unshared non-durable subscription is created, and a MessageConsumer created on that subscription, using one of the createConsumer methods on Session, JMSContext or TopicSession. Alternatively an unshared non-durable subscription is created, and a TopicSubscription created on that subscription, using one of the createSubscriber methods on TopicSession. An unshared non-durable subscription does not have a name. Each call to createConsumer or createSubscriber creates a new subscription. An unshared non-durable subscription only exists for as long as the MessageConsumer o r TopicSubscriber exists. This means that any messages sent to the topic will only be added to the subscription whilst the MessageConsumer or TopicSubscriber is active. The subscription is not persisted and will be deleted (together with any un delivered messages associated with it) when the consumer is closed.true
falsetechnologyactivetrue
JMS:SPEC:26788.3.1If a message selector is specified then only messages with properties matching the message selector expression will be added to the subscription. The noLocal argument may be used to specify that messages published to the topic by its own connection must not be added to the subscription.true
falsetechnologyactivetrue
JMS:SPEC:26888.3.1Each unshared non-durable subscription has a single consumer. If the application needs to create multiple consumers on the same subscription then a shared non-durable subscription should be used instead. See section 8.3.2 "Shared non-durable subscriptions". If the application needs to be able to receive messages that were sent to the topic even when there was no active consumer on it then a durable subscription should be used instead. See section 8.3.3 "Durable subscriptions".true
falsetechnologyactivetrue
JMS:SPEC:26988.3.2A 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. A shared non-durable subscription is created, and a MessageConsumer created on that subscription, using one of the createSharedConsumer methods on Session, JMSContext or TopicSession. The same methods may be used to create a MessageConsumer on an existing shared non-durable subscription. A shared non-durable subscription is identified by a name specified by the client. A shared non-durable subscription only exists for as long as a MessageConsumer or TopicSubscriber exists on the subscription. This means that any messages sent to the topic will only be added to the subscription whilst a MessageConsumer or TopicSubscriber is active. The subscription is not persisted and will be deleted (together with any undelivered messages associated with it) when the last consumer on the subscription is closed.true
falsetechnologyactivetrue
JMS:SPEC:27088.3.2If a message selector is specified then only messages with properties matching the message selector expression will be added to the subscription. The noLocal argument may be used to specify that messages published to the topic by its own connection must not be added to the subscription.true
falsetechnologyactivetrue
JMS:SPEC:27188.3.2If there is an active consumer on the non-durable shared subscription (or a consumed message from that subscription is still part of a pending transaction or is not yet acknowledged in the session), and an attempt is made to create an additional consumer, specifying the same name but a different topic or message selector, then a JMSException or JMSRuntimeException will be thrown. There is no restriction to prevent a shared non-durable subscription and a durable subscription having the same name. Such subscriptions would be completely separate.true
falsetechnologyactivetrue
JMS:SPEC:16444.2.3.3A durable subscription is used by a client which needs to receive all the messages published on a topic, including the ones published when there is no MessageConsumer or TopicSubscriber 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 MessageConsumer or TopicSubscriber on the durable subscription or until they have expired. A durable subscription is created, and a MessageConsumer created on that durable subscription, using the createDurableConsumer methods on a Session or TopicSession. The same methods may be used to create a MessageConsumer on an existing durable subscription. There are also createDurableSubscriber methods which have the same behavior as createDurableConsumer but which return a TopicSubscriber. These methods are deprecated since the object they return is deprecated. A durable subscription which has a MessageConsumer or TopicSubscriber associated with it is described as being active. A durable subscription which has no MessageConsumer or TopicSubscriber associated with it is described as being inactive. Only one session at a time can have a MessageConsumer or TopicSubscriber for a particular durable subscription. 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 first created then a client which subsequently wishes to create a MessageConsumer or TopicSubscriber on that durable subscription must use the same client identifier.true
falsetechnologyactivetrue
JMS:SPEC:27444.2.3.3A durable subscription may have more than one active consumer (this was not permitted prior to JMS 2.0). Each message from the subscription will be delivered to only one of the consumers on that subscription.true
falsetechnologyactivetrue
JMS:SPEC:16544.2.3.3A client can change an existing durable subscription by calling one of the createDurableConsumer methods with the same name and client identifier (if used), and a new topic and/or message selector. Changing a durable subscriber is equivalent to unsubscribing (deleting) the old one and creating a new one.true
falsetechnologyactivetrue
JMS:SPEC:16644.2.3.3A durable subscription will continue to accumulate messages until it is deleted using the unsubscribe method on the Sessions and or TopicSession. This 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 it has an active MessageConsumer or TopicSubscriber for it or while a message received by it is part of a current transaction or has not been acknowledged in the session. When a durable subscription is created on a topic, the noLocal argument may be used to specify that messages published to the topic by its own connection must not be added to the durable subscription.true
falsetechnologyactivetrue
JMS:SPEC:27244.2.3.3If there are no active consumers 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), and this method is used to create a new consumer on that durable subscription, specifying the same name and client identifier (if set) but a different topic or message selector, then the durable subscription will be deleted and a new one created. However if there is an active consumer on the durable subscription (or a consumed message from that subscription is still part of a pending transaction or is not yet acknowledged in the session), and an attempt is made to create an additional consumer, specifying the same name and client identifier (if set) but a different topic or message selector, then a JMSException or JMSRuntimeException will be thrown.true
falsetechnologyactivetrue
JMS:SPEC:16744.2.8Unacknowledged messages of a nondurable subscriber should be able to be recovered for the lifetime of that nondurable subscriber. When a nondurable subscriber terminates, messages waiting for it will likely be dropped whether or not they have been acknowledged.true
falsetechnologyactivetrue
JMS:SPEC:16844.2.8Only durable subscriptions are reliably able to recover unacknowledged messages.true
falsetechnologyactivefalse
JMS:SPEC:17044.2.10The TopicRequestor constructor is given a TopicSession and a destination topic. It creates a TemporaryTopic for the responses and provides a request() method that sends the request message and waits for its reply.true
falsetechnologyactivetrue
JMS:SPEC:1711010.3IllegalStateException: This exception is thrown when a method is invoked at an illegal or inappropriate time or if the provider is not in an appropriate state for the requested operation. For example, this exception must be thrown if Session.commit() is called on a non-transacted session.true
falsetechnologyactivetrue
JMS:SPEC:1721010.3JMSSecurityException: This exception must be thrown when a provider rejects a user name/password submitted by a client. It may also be thrown for any case where a security restriction prevents a method from completing.true
falsetechnologyactivefalse
JMS:SPEC:1731010.3InvalidClientIDException: This exception must be thrown when a client attempts to set a connection's client identifier to a value that is rejected by a provider.true
falsetechnologyactivetrue
JMS:SPEC:1741010.3InvalidDestinationException: This exception must be thrown when a destination is either not understood by a provider or is no longer valid.true
falsetechnologyactivetrue
JMS:SPEC:1751010.3InvalidSelectorException: This exception must be thrown when a JMS client attempts to give a provider a message selector with invalid syntax.true
falsetechnologyactivetrue
JMS:SPEC:1761010.3MessageEOFException: This exception must be thrown when an unexpected end of stream has been reached when a StreamMessage or BytesMessage is being read.true
falsetechnologyactivetrue
JMS:SPEC:1771010.3MessageFormatException: This exception must be thrown when a JMS client attempts to use a data type not supported by a message or attempts to read data in a message as the wrong type. It must also be thrown when equivalent type errors are made with message property values. For example, this exception must be thrown if StreamMessage.writeObject() is given an unsupported class or if StreamMessage.readShort() is used to read a boolean value. This exception also must be thrown if a provider is given a type of message it cannot accept. Note that the special case of a failure caused by attempting to read improperly formatted String data as numeric values must throw the java.lang.NumberFormatException.true
falsetechnologyactivetrue
JMS:SPEC:1781010.3MessageNotReadableException: This exception must be thrown when a JMS client attempts to read a write-only message.true
falsetechnologyactivetrue
JMS:SPEC:1791010.3MessageNotWriteableException: This exception must be thrown when a JMS client attempts to write to a read-only message.true
falsetechnologyactivetrue
JMS:SPEC:1801010.3ResourceAllocationException: This exception is thrown when a provider is unable to allocate the resources required by a method. For example, this exception should be thrown when a call to createTopicConnection fails due to lack of JMS provider resources.true
falsetechnologyactivefalse
JMS:SPEC:1811010.3TransactionInProgressException: This exception is thrown when an operation is invalid because a transaction is in progress. For instance, attempting to call Session.commit() when a session is part of a distributed transaction should throw a TransactionInProgressException.true
falsetechnologyactivefalse
JMS:SPEC:1821010.3TransactionRolledBackException: This exception must be thrown when a call to Session.commit results in a rollback of the current transaction.true
falsetechnologyactivefalse
JMS:SPEC:1831111.2.4For application servers, connections provide a special facility for creating a ConnectionConsumer. The messages it is to consume are specified by a destination and a message selector. In addition, a ConnectionConsumer must be given a ServerSessionPool to use for processing its messages.false
falsetechnologyactivetrue
JMS:SPEC:1841111.3.5An XAResource provides some fairly sophisticated facilities for interleaving work on multiple transactions, recovering a list of transactions in progress, and so on. A JTA aware JMS provider must fully implement this functionality.false
falsetechnologyactivetrue
JMS:SPEC:2631212.1The Java Platform, Enterprise Edition (Java EE) Specification, v7 requires support for the JMS API as part of the full Java EE platform. The Java EE platform provides a number of additional features which are not available in the Java Platform Standard Edition (Java SE). These include the following: 1) Support for distributed transactions which are demarcated either programmatically, using methods on javax.transaction.UserTransaction, or automatically by the container. These are referred to in this specification as JTA transactions to distinguish them from JMS local transactions. 2) Support for JMS message-driven beans. These features are defined in detail in other specifications including the Java EE 7 specification and the Enterprise JavaBeans 3.2 specification. However the use of the Java EE platform imposes restrictions on the way that the JMS API may be used by applications, and those restrictions are described here. The JMS specification does not define how a Java EE container integrates with its JMS provider. Different Java EE containers may integrate with their JMS provider in different ways. In the future, an integration point for JMS integration into J2EE platforms will be provided using the J2EE Connector Architecture. true
falsetechnologyactivefalse
JMS:SPEC:2641212.2JMS applications which run in the Java EE web or EJB container are subject to a number of restrictions in the way the JMS API may be used. These restrictions are necessary for the following reasons: 1) In a Java EE web or EJB container, a JMS provider operates as a transactional resource manager which must participate in JTA transactions as defined in the Java EE platform specification. This overrides the behaviour of JMS sessions as defined elsewhere in the JMS specification. For more details see section 12.3 "Behaviour of JMS sessions in the Java EE web or EJB container". 2) The Java EE web or EJB containers need to be able to manage the threads used to run applications. 3) The Java EE web and EJB containers perform connection management which may include the pooling of JMS connections. The restrictions described in this section do not apply to the Java EE application client container. 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.true
falsetechnologyactivetrue
JMS:SPEC:264.11212.2If an application attempts to use the Connection object's createSession method when an active Session object exists for that connection then a JMSException should be thrown.true
falsetechnologyactivetrue
JMS:SPEC:264.21212.2If an application attempts to use the JMSContext object's createContext method then a JMSRuntimeException should be thrown, since the first messaging context already contains a connection and session and this method would create a second session on the same connection.true
falsetechnologyactivetrue
JMS:SPEC:264.31212.2The following methods are intended for use by the application server and their use by applications running in the Java EE web or EJB container may interfere with the container's ability to properly manage the threads used in the runtime environment. They must therefore not be called by applications running in the Java EE web or EJB container: 1) javax.jms.Session method setMessageListener 2) javax.jms.Session method getMessageListener 3) javax.jms.Session method run 4) javax.jms.Connection method createConnectionConsumer 5) javax.jms.Connection method createDurableConnectionConsumer false
falsetechnologyactivetrue
JMS:SPEC:264.41212.2The following methods may interfere with the container's ability to properly manage the threads used in the runtime environment and must not be used by applications running in the Java EE web or EJB container: 1) javax.jms.MessageConsumer method setMessageListener 2) javax.jms.MessageConsumer method getMessageListener 3) javax.jms.JMSContext method setMessageListener 4) javax.jms.JMSContext method getMessageListener This restriction means that applications running in the Java EE web or EJB container which need to receive messages asynchronously may only do so using message-driven beans.true
falsetechnologyactivetrue
JMS:SPEC:264.51212.2The following methods may interfere with the container's management of connections and must not be used by applications running in the Java EE web or EJB container: 1) javax.jms.Connection method setClientID 2) javax.jms.Connection method stop 3) javax.jms.Connection method setExceptionListener 4) javax.jms.JMSContext method setClientID 5) javax.jms.JMSContext method stop 6) javax.jms.JMSContext method setExceptionListener Applications which need to use a specific client identifier must set it on the connection factory, as described in section 6.1.2 "Client Identifier" All the methods listed in this section may throw a javax.jms.JMSException (if allowed by the method) or a javax.jms.JMSRuntimeException (if not) when called by an application running in the Java EE web or EJB container. This is recommended but not required.true
falsetechnologyactivetrue
JMS:SPEC:2651212.3The behaviour of a JMS session in respect of transactions and message acknowledgement is different for applications which run in a Java EE web or EJB container than it is for applications which run in a normal Java SE environment or in the Java EE application client container. These differences also apply to JMS messaging context objects, since these incorporate a JMS session. When an application creates a JMS session or messaging context in a Java EE web or EJB container, and there is an active JTA transaction in progress, then the session that is created will participate in the JTA transaction and will be committed or rolled back when the JTA transaction is committed or rolled back. Any session parameters that are specified when creating the session or messaging context are ignored. The use of local transactions or client acknowledgement is not permitted. This applies irrespective of whether the JTA transaction is demarcated automatically by the container or programmatically using methods on javax.transaction.UserTransaction. The term "session parameters" here refers to the arguments that may be passed into a call to the createSession or createContext methods to specify whether the session should use a local transaction and, if the session is non-transacted, what the acknowledgement mode should be. When an application creates a JMS session or messaging context in a Java EE web or EJB container, and there is no active JTA transaction in progress, then the session that is created will be non-transacted and will be automatically-acknowledged. The use of local transactions or client acknowledgement is still not permitted. Parameters may be specified when creating the session or messaging context to specify whether the acknowledgement mode should be AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE. If any other session parameter values are specified they will be ignored and an acknowledgement mode of AUTO_ACKNOWLEDGE used. The use of local transactions or client acknowledgement is not permitted in a Java EE web or EJB container even if there is no active JTA transaction because this would require applications to be written differently depending on whether there was a JTA transaction or not.true
falsetechnologyactivetrue
JMS:SPEC:265.11212.3The JMS API provides the following methods to create a session which allow the session to be defined using either the two parameters transacted and acknowledgeMode or by the single parameter sessionMode. If these methods are called in a Java EE web or EJB container then these parameters will be overridden as described above. 1) javax.jms.Connection method createSession(boolean transacted, int acknowledgeMode) 2) javax.jms.QueueConnection method createQueueSession(boolean transacted, int acknowledgeMode) 3) javax.jms.TopicConnection method createTopicSession(boolean transacted, int acknowledgeMode) 4) javax.jms.Connection method createSession(int sessionMode) It is recommended that applications that run in the Java EE web or EJB container create a session using the following method which does not specify a parameter: javax.jms.Connection method createSession() true
falsetechnologyactivetrue
JMS:SPEC:265.21212.3The JMS API provides the following methods to create a messaging context which allow the session to be defined using the single parameter sessionMode. If these methods are called in a Java EE web or EJB container then this parameter will be overridden as described above. 1) javax.jms.ConnectionFactory method createContext(int sessionMode) 2) javax.jms.ConnectionFactory method createContext(String userName, String password, int sessionMode)true
falsetechnologyactivetrue
JMS:SPEC:265.31212.3The following method to create a messaging context from an existing messaging context is not permitted in a Java EE web or EJB container because it would create a second session on an existing connection, which is not permitted in a java EE web or EJB container.] 1) javax.jms.JMSContext method createContext(int sessionMode) It is recommended that applications that run in the Java EE web or EJb container creates a messaging context using one of the following methods which does do specify a sessionMode: 1) javax.jms.ConnectionFactory method createContext() 2) javax.jms.ConnectionFactory method createContext(String username, String password)true
falsetechnologyactivetrue
JMS:SPEC:265.41212.3When programmatic transaction demarcation is being used, the session should be both created and used within an active JTA transaction. If a session or messaging context is created when there is an active JTA transaction, then after that transaction is committed or rolled back the session remains available for use in any subsequent JTA transaction until the session or messaging context is closed. However, if a session or messaging context is created when there is an active JTA transaction but is subsequently used to send or receive messages when there is no active JTA transaction then the behaviour is undefined. Similarly, if a session or messaging context is created when there is no active JTA transaction but subsequently used to send or receive messages when there is an active JTA transaction then the behaviour is undefined. The Bean Provider should not make use of the JMS request/reply paradigm (sending of a JMS message, followed by the synchronous receipt of a reply to that message) within a single transaction. Because a JMS message is typically not delivered to its final destination until the transaction commits, the receipt of the reply within the same transaction will not take place.true
falsetechnologyactivefalse
JMS:SPEC:2761313.1 A JMS standard resource adapter must support the ActivationSpec JavaBean properties defined in the following table. It may support additional properties in addition to those listed. true
falsetechnologyactivetrue
JMS:SPEC:276.11313.1 destinationLookup - This property may be used to specify the lookup name of an administratively-defined javax.jms.Queue or javax.jms.Topic object which defines the JMS queue or topic from which the endpoint (message-driven bean) is to receive messages. true
falsetechnologyactivetrue
JMS:SPEC:276.21313.1 connectionFactoryLookup - This property may be used to specify the lookup name of an administratively-defined javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory or javax.jms.TopicConnectionFactory object that will be used to connect to the JMS provider from which the endpoint (message-driven bean) is to receive messages. true
falsetechnologyactivetrue
JMS:SPEC:276.31313.1 acknowledgeMode - If bean-managed transaction demarcation is used, this property may be used to indicate whether JMS AUTO_ACKNOWLEDGE semantics or DUPS_OK_ACKNOWLEDGE semantics should apply. This property may be set to either Auto-acknowledge or Dups-ok-acknowledge. If this property is not specified, a default of Auto-acknowledge will be used. true
falsetechnologyactivetrue
JMS:SPEC:276.41313.1 messageSelector - This property may be used to specify a message selector. If this property is not specified then a message selector will not be used. true
falsetechnologyactivetrue
JMS:SPEC:276.51313.1 destinationType - This property may be used to specify whether the specified destination is a queue or topic. The valid values are javax.jms.Queue or javax.jms.Topic. true
falsetechnologyactivetrue
JMS:SPEC:276.61313.1 subscriptionDurability - This property only applies to endpoints (message-driven beans) that receive messages published to a topic. It may be used to specify whether the subscription is durable or non-durable. This property may be set to either Durable or NonDurable. If this property is not specified, a default of NonDurable will be used. true
falsetechnologyactivetrue
JMS:SPEC:276.71313.1 clientId - This property may be used to specify the client identifier that will be used when connecting to the JMS provider from which the endpoint (message-driven bean) is to receive messages. Setting this property is always optional. true
falsetechnologyactivetrue
JMS:SPEC:276.81313.1 subscriptionName - This property only applies to endpoints (message-driven beans) that receive messages published to a topic. It may be used to specify the name of the durable or non-durable subscription. true
falsetechnologyactivetrue
JMS:SPEC:276.91313.1 MDB activation properties. Message-driven beans are defined in the Enterprise JavaBeans specification. JMS defines the following activation properties for message-driven beans. true
falsetechnologyactivetrue
JMS:SPEC:2771212.4.1Support for injection. Injection of JMSContext objects is supported in those Java EE application classes which support dependency injection using CDI and for which CDI support has been enabled by means of a META_INF/beans.xml descriptor. Section EE.5.20 of the Java EE specification lists the application classes that support dependency injection using CDI. Section 12.1 of the CDI specification specifies how CDI support may be enabled for a particular application.true
falsetechnologyactivetrue
JMS:SPEC:2781212.4.2Container-managed and application-managed JMSContexts. A JMSContext object which has been injected is described as being container-managed, as it is created and closed by the container, not the application. A JMSContext object which has been created by calling the ConnectionFactory method createContext is described as being application-managed. The application is responsible for calling close when the object is not longer needed.true
falsetechnologyactivetrue
JMS:SPEC:2791212.4.3Injection syntax. Applications may declare a field of type javax.jms.JMSContext and annotate it with the javax.inject.Inject annotation: @Inject private JMSContext context; The container will inject a JMSContext. This object will have a scope as defined by section 12.4.3 "Scope of injected JMSContext objects". The annotation javax.jms.JMSConnectionFactory may be used to specify the JNDI lookup name of the ConnectionFactory used to create the JMSContext. For example: @Inject @JMSConnectionFactory("jms/connectionFactory") private JMSContext context; If no lookup name is specified or the JMSConnectionFactory annotation is omitted then the platform default JMS connection factory will be used. The annotation javax.jms.JMSPasswordCredential may be used to specify a user name and password which will be used when the JMSContext is created. For example: @Inject @JMSConnectionFactory("jms/connectionFactory") @JMSPasswordCredential(userName="admin",password="mypassword") private JMSContext context; Since it is undesirable to hardcode clear text passwords in an application, the password may be specified as an alias: @Inject @JMSPasswordCredential( username="admin", password="${ALIAS=myAdminPassword}") private JMSContext context; The use of a password alias allows the password to be defined in a secure manner separately from the application. See the Java EE 7 platform specification for more information on password aliases. The annotation javax.jms.JMSSessionMode may be used to specify the session mode of the JMSContext. For example: @Inject @JMSConnectionFactory("jms/connectionFactory") @JMSSessionMode(JMSContext.AUTO_ACKNOWLEDGE) private JMSContext context; The meaning and possible values of session mode are the same as for the ConnectionFactory method createContext(int sessionMode): In the Java EE application client container, session mode may be set to any of JMSContext.SESSION_TRANSACTED, JMSContext.CLIENT_ACKNOWLEDGE, JMSContext.AUTO_ACKNOWLEDGE or JMSContext.DUPS_OK_ACKNOWLEDGE. If no session mode is specified or the JMSSessionMode annotation is omitted a session mode of JMSContext.AUTO_ACKNOWLEDGE will be used. In a Java EE web or EJB container, when there is an active JTA transaction in progress, session mode is ignored and the JMSSessionMode annotation is unnecessary. In a Java EE web or EJB container, when there is no active JTA transaction in progress, session mode may be set to either of JMSContext.AUTO_ACKNOWLEDGE or JMSContext.DUPS_OK_ACKNOWLEDGE. If no session mode is specified or the JMSSessionMode annotation is omitted a session mode of JMSContext.AUTO_ACKNOWLEDGE will be used. For more information about the use of session mode when creating a messaging context, see section 12.3 "Behaviour of JMS sessions in the Java EE web or EJB container" and the API documentation for the ConnectionFactory method createContext(int sessionMode).true
falsetechnologyactivetrue
JMS:SPEC:2801212.4.4Scope of injected JMSContext objects. The scope of an injected JMSContext defines whether different injected JMSContext objects will actually refer to the same JMSContext object It also defines when the injected JMSContext will be closed by the container. When the object falls out of scope, the container will automatically call close(). The scope of an injected JMSContext object will depend on whether it is used in a transaction. If an injected JMSContext is used in a JTA transaction (both bean-managed and container-managed), its scope will be that of the transaction. This means that: The JMSContext object will be automatically created the first time it is used within the transaction. The JMSContext object will be automatically closed when the transaction is committed. Within the same JTA transaction, different injected JMSContext objects which are injected using identical annotations will all refer to the same JMSContext object. If an injected JMSContext is used when there is no JTA transaction then its scope will be the existing CDI scope @RequestScoped. This means that: The JMSContext object will be automatically created the first time it is used within a request. The JMSContext object will be automatically closed when the request ends. Within the same request, different injected JMSContext objects which are injected using identical annotations will all refer to the same JMSContext object. If an injected JMSContext is used both in a JTA transaction and outside a JTA transaction then separate JMSContext objects will be used, with a separate JMSContext object being used for each JTA transaction as described above.true
falsetechnologyactivetrue
JMS:SPEC:2811212.4.5Restrictions on use of injected JMSContext objects. Within the same scope, different injected JMSContext objects which are injected using identical annotations will all refer to the same JMSContext object. This means that they will all use the same connection. This will reduce the resource usage of the application and improve performance. It also means that messages would be sent using the same session. Messages sent using different JMSContext objects in the same scope will be therefore received in order in which they were sent (see section 6.2.9.2 "Order of message sends" for a few qualifications). However, to avoid the possibility of code in one bean having an unexpected effect on a different bean, the following methods which change the public state of a JMSContext will not be permitted if the JMSContext is injected. O setClientID O setExceptionListener O stop O acknowledge O commit O rollback O recover O setAutoStart O start O close These methods must throw a JMSRuntimeException if the JMSContext is injected. These restrictions do not apply when the JMSContext is managed by the application; though note that several of these methods are in any case prohibited in a Java EE web or EJB container.true
falsetechnologyactivetrue