You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/09/21 13:13:54 UTC
[camel] branch main updated: CAMEL-16927: The old spring xml dsl,
in case there are multiple camel context (despite not offically
supported using more in the same app) then there can be a deadlock. Thanks
to Piotr Klimczak for reporting and the patch/PR for Camel 3.7.x
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 9000169 CAMEL-16927: The old spring xml dsl, in case there are multiple camel context (despite not offically supported using more in the same app) then there can be a deadlock. Thanks to Piotr Klimczak for reporting and the patch/PR for Camel 3.7.x
9000169 is described below
commit 900016951ff59adf0a65b4b8b2d9ee5dfc4d9ac3
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Sep 21 15:10:48 2021 +0200
CAMEL-16927: The old spring xml dsl, in case there are multiple camel context (despite not offically supported using more in the same app) then there can be a deadlock. Thanks to Piotr Klimczak for reporting and the patch/PR for Camel 3.7.x
---
.../main/java/org/apache/camel/spring/xml/CamelContextFactoryBean.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/components/camel-spring-xml/src/main/java/org/apache/camel/spring/xml/CamelContextFactoryBean.java b/components/camel-spring-xml/src/main/java/org/apache/camel/spring/xml/CamelContextFactoryBean.java
index 93c3a4a..f617817 100644
--- a/components/camel-spring-xml/src/main/java/org/apache/camel/spring/xml/CamelContextFactoryBean.java
+++ b/components/camel-spring-xml/src/main/java/org/apache/camel/spring/xml/CamelContextFactoryBean.java
@@ -505,6 +505,7 @@ public class CamelContextFactoryBean extends AbstractCamelContextFactoryBean<Spr
*/
protected SpringCamelContext createContext() {
SpringCamelContext ctx = newCamelContext();
+ ctx.setApplicationContext(getApplicationContext());
ctx.setName(getId());
return ctx;
@@ -530,7 +531,7 @@ public class CamelContextFactoryBean extends AbstractCamelContextFactoryBean<Spr
}
protected SpringCamelContext newCamelContext() {
- return new SpringCamelContext(getApplicationContext());
+ return new SpringCamelContext();
}
@Override