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 <anto...@stefanutti.fr> Authored: Fri Apr 14 11:13:27 2017 +0200 Committer: Antonin Stefanutti <anto...@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"/>