You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/01/11 16:55:31 UTC

(camel) 02/07: CAMEL-20297 camel-cxf-spring-soap: do not swallow interrupted exceptions

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6d56e383f9948eb3fa4a3bbd55cec0766ceee4f3
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Jan 11 10:05:31 2024 +0100

    CAMEL-20297 camel-cxf-spring-soap: do not swallow interrupted exceptions
---
 .../apache/camel/component/cxf/spring/jaxws/CxfSpringEndpoint.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/components/camel-cxf/camel-cxf-spring-soap/src/main/java/org/apache/camel/component/cxf/spring/jaxws/CxfSpringEndpoint.java b/components/camel-cxf/camel-cxf-spring-soap/src/main/java/org/apache/camel/component/cxf/spring/jaxws/CxfSpringEndpoint.java
index b95dfe5be37..b87a16bcb94 100644
--- a/components/camel-cxf/camel-cxf-spring-soap/src/main/java/org/apache/camel/component/cxf/spring/jaxws/CxfSpringEndpoint.java
+++ b/components/camel-cxf/camel-cxf-spring-soap/src/main/java/org/apache/camel/component/cxf/spring/jaxws/CxfSpringEndpoint.java
@@ -343,7 +343,9 @@ public class CxfSpringEndpoint extends CxfEndpoint implements ApplicationContext
                                         done = true;
                                     }
                                 }
-
+                            } catch (InterruptedException e) {
+                                LOG.info("Interrupted while enabling graceful SpringBus shutdown");
+                                Thread.currentThread().interrupt();
                             } catch (Exception e) {
                                 LOG.debug("Error when enabling SpringBus shutdown gracefully", e);
                             }