Skip to content

Commit 65b6017

Browse files
committed
Return exception from convertJmsInvokerAccessException()
The convertJmsInvokerAccessException() method in JmsInvokerClientInterceptor now correctly returns the converted exception instead of throwing it.
1 parent 53c2531 commit 65b6017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-jms/src/main/java/org/springframework/jms/remoting/JmsInvokerClientInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ protected Object recreateRemoteInvocationResult(RemoteInvocationResult result) t
419419
* @return the RemoteAccessException to throw
420420
*/
421421
protected RemoteAccessException convertJmsInvokerAccessException(JMSException ex) {
422-
throw new RemoteAccessException("Could not access JMS invoker queue [" + this.queue + "]", ex);
422+
return new RemoteAccessException("Could not access JMS invoker queue [" + this.queue + "]", ex);
423423
}
424424

425425
}

0 commit comments

Comments
 (0)