Resolution: Won't Fix
Affects Version/s: 1.1
Fix Version/s: None
In JMS 1.1, almost every method in the JMS API throws a javax.jms.JMSException, which is a checked exception and so needs to be caught and handled by the application.
In practice the developer rarely knows what to do in such circumstances, and provides some generic exception handling that is not specific to JMSException. The result is to clutter the application code with boilerplate exception handling which adds little value.
In addition, the fact that so many API methods throw this checked exception makes it more difficult to construct frameworks on top of the JMS API.
It is therefore proposed that the JSR 343 Expert Group consider whether they should change the JMS API to throw unchecked rather than checked exceptions as much as possible. One simple way of achieving this would be to change javax.jms.JMSException to extend java.lang.RuntimeException instead of java.lang.Exception.
Existing applications which explicitly catch JMSException would not need to be changed.