Issue Details (XML | Word | Printable)

Key: JMS_SPEC-106
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Nigel Deakin
Reporter: Nigel Deakin
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
jms-spec

Methods on JMSContext that are disallowed if the context is injected should throw a IllegalStateException not a JMSException

Created: 07/Nov/12 04:00 PM   Updated: 20/Mar/13 03:50 PM   Resolved: 20/Mar/13 03:50 PM
Component/s: None
Affects Version/s: 2.0PD
Fix Version/s: 2.0PD, 2.0

Time Tracking:
Not Specified

Issue Links:
Dependency
 

Tags: pd20-added
Participants: Nigel Deakin


 Description  « Hide

Section 11.3.5. "Restrictions on use of injected JMSContext objects" of the draft JMS 2.0 specification lists some methods which may not be used if the JMSContext is injected (container-managed). It specifies that these methods must throw a JMSRuntimeException if the JMSContext is injected.

A better exception to throw would be an IllegalStateRuntimeException since the error is caused by the JMSContext being "in the wrong state" (container-managed).



Sort Order: Ascending order - Click to sort in descending order
Nigel Deakin made changes - 07/Nov/12 09:15 PM
Field Original Value New Value
Link This issue blocks MQ-240 [ MQ-240 ]
Nigel Deakin made changes - 14/Nov/12 04:49 PM
Status Open [ 1 ] Closed [ 6 ]
Assignee Nigel Deakin [ nigeldeakin ]
Fix Version/s 2.0PD [ 16049 ]
Resolution Fixed [ 1 ]
Nigel Deakin made changes - 14/Nov/12 04:49 PM
Tags pd20-added
Nigel Deakin made changes - 20/Mar/13 03:50 PM
Resolution Fixed [ 1 ]
Status Closed [ 6 ] Reopened [ 4 ]
Nigel Deakin made changes - 20/Mar/13 03:50 PM
Status Reopened [ 4 ] Resolved [ 5 ]
Fix Version/s 2.0 [ 14692 ]
Resolution Fixed [ 1 ]