You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-1 can be set for setJMSExpiration(long expiration) method of Message class. When -1 is set and executed, no exception or error is displayed. Should it cause exception when an invalid value is set?
Environment
Glassfish 4.0.1 b02 07/24/2013
Windows
The text was updated successfully, but these errors were encountered:
@glassfishrobot Commented @nigeldeakin said:
A negative timestamp has no meaning, so it would be helpful if MQ threw an exception when an attempt was made to set a negative value. The JMS specification does not require that the exception that is thrown is a JMSException, but this seems to be the most appropriate exception to throw.
Note that this method is not intended for use by client applications and any value set by the client application will always be overridden (see the javadoc):
This method is for use by JMS providers only to set this field when a message is sent. This message cannot be used by clients to configure the expiration time of the message. This method is public to allow a JMS provider to set this field when sending a message whose implementation is not its own.
-1 can be set for setJMSExpiration(long expiration) method of Message class. When -1 is set and executed, no exception or error is displayed. Should it cause exception when an invalid value is set?
Environment
Glassfish 4.0.1 b02 07/24/2013
Windows
The text was updated successfully, but these errors were encountered: