Return exception from convertJmsInvokerAccessException()

The convertJmsInvokerAccessException() method in
JmsInvokerClientInterceptor now correctly returns the converted
exception instead of throwing it.
master
Sam Brannen 10 years ago
parent 53c2531a8b
commit 65b6017db9
  1. 2
      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);
}
}

Loading…
Cancel
Save