messaging icon indicating copy to clipboard operation
messaging copied to clipboard

JMSProducer#setJMSCorrelationIDAsBytes should be allowed to throw a java.lang.UnsupportedOperationException

Open glassfishrobot opened this issue 11 years ago • 3 comments

In both JMS 1.1 and JMS 2.0, the method setJMSCorrelationIDAsBytes on Message is allowed to throw a java.lang.UnsupportedOperationException if the JMS provider does not support native correlation ID values. The javadoc states:

If a provider supports the native concept of correlation ID, a JMS client may need to assign specific JMSCorrelationID values to match those expected by native messaging clients. JMS providers without native correlation ID values are not required to support this method and its corresponding get method; their implementation may throw a java.lang.UnsupportedOperationException.

The same rule needs to be added to the method setJMSCorrelationIDAsBytes on JMSProducer. Its omission is as an error in the spec.

Affected Versions

[2.0]

glassfishrobot avatar May 14 '13 09:05 glassfishrobot

  • Issue Imported From: https://github.com/javaee/jms-spec/issues/123
  • Original Issue Raised By:@glassfishrobot
  • Original Issue Assigned To: Unassigned

glassfishrobot avatar Feb 12 '18 18:02 glassfishrobot

@glassfishrobot Commented Reported by @nigeldeakin

glassfishrobot avatar May 14 '13 09:05 glassfishrobot

@glassfishrobot Commented This issue was imported from java.net JIRA JMS_SPEC-123

glassfishrobot avatar May 02 '17 10:05 glassfishrobot