Return exception from convertJmsInvokerAccessException()

The convertJmsInvokerAccessException() method in
JmsInvokerClientInterceptor now correctly returns the converted
exception instead of throwing it.
This commit is contained in:
Sam Brannen
2015-02-19 22:18:52 +01:00
parent 53c2531a8b
commit 65b6017db9

View File

@@ -419,7 +419,7 @@ public class JmsInvokerClientInterceptor implements MethodInterceptor, Initializ
* @return the RemoteAccessException to throw
*/
protected RemoteAccessException convertJmsInvokerAccessException(JMSException ex) {
throw new RemoteAccessException("Could not access JMS invoker queue [" + this.queue + "]", ex);
return new RemoteAccessException("Could not access JMS invoker queue [" + this.queue + "]", ex);
}
}