From 65b6017db9bf3abec66c9511cd688dbcb5e4385c Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 19 Feb 2015 22:18:52 +0100 Subject: [PATCH] Return exception from convertJmsInvokerAccessException() The convertJmsInvokerAccessException() method in JmsInvokerClientInterceptor now correctly returns the converted exception instead of throwing it. --- .../jms/remoting/JmsInvokerClientInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-jms/src/main/java/org/springframework/jms/remoting/JmsInvokerClientInterceptor.java b/spring-jms/src/main/java/org/springframework/jms/remoting/JmsInvokerClientInterceptor.java index f7de23660b..2cff432add 100644 --- a/spring-jms/src/main/java/org/springframework/jms/remoting/JmsInvokerClientInterceptor.java +++ b/spring-jms/src/main/java/org/springframework/jms/remoting/JmsInvokerClientInterceptor.java @@ -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); } }