You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2017/04/14 09:13:35 UTC
camel git commit: CAMEL-10685: Avoid scanning class loading issues
when JTA is missing
Repository: camel
Updated Branches:
refs/heads/master 04fbd7a82 -> cf087f2fa
CAMEL-10685: Avoid scanning class loading issues when JTA is missing
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/cf087f2f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cf087f2f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cf087f2f
Branch: refs/heads/master
Commit: cf087f2fa5d9058732b4940deec6aa45f4881077
Parents: 04fbd7a
Author: Antonin Stefanutti <an...@stefanutti.fr>
Authored: Fri Apr 14 11:13:27 2017 +0200
Committer: Antonin Stefanutti <an...@stefanutti.fr>
Committed: Fri Apr 14 11:13:27 2017 +0200
----------------------------------------------------------------------
components/camel-cdi/src/main/resources/META-INF/beans.xml | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/cf087f2f/components/camel-cdi/src/main/resources/META-INF/beans.xml
----------------------------------------------------------------------
diff --git a/components/camel-cdi/src/main/resources/META-INF/beans.xml b/components/camel-cdi/src/main/resources/META-INF/beans.xml
index c87dbfa..ae7b3e2 100644
--- a/components/camel-cdi/src/main/resources/META-INF/beans.xml
+++ b/components/camel-cdi/src/main/resources/META-INF/beans.xml
@@ -19,6 +19,13 @@
<scan>
<exclude name="org.apache.camel.cdi.Main"/>
+
+ <exclude name="org.apache.camel.cdi.transaction.*">
+ <if-class-not-available name="javax.transaction.Transaction"/>
+ </exclude>
+ <exclude name="org.apache.camel.cdi.transaction.TransactedDefinition"/>
+ <exclude name="org.apache.camel.cdi.transaction.JtaTransactionErrorHandlerBuilder"/>
+
<exclude name="org.apache.camel.cdi.xml.*"/>
<exclude name="org.apache.camel.cdi.XmlCdiBeanFactory"/>
<exclude name="org.apache.camel.cdi.XmlCdiJaxbContexts"/>