From a6782443c1695f54176afecfda6c5c423bc18a84 Mon Sep 17 00:00:00 2001 From: "Christopher L. Shannon (cshannon)" Date: Fri, 9 Jun 2017 07:13:11 -0400 Subject: [PATCH] AMQ-6585 - Upgrade to Camel 2.18.4 Added the camel-blueprint feature to work with Spring 4.x as Spring DM support for Camel was deprecated --- activemq-camel/pom.xml | 4 ++-- ...iveMQBrokerNdExternalCamelFeatureTest.java | 6 +++-- .../src/main/resources/features-core.xml | 2 +- .../src/main/resources/features.xml | 2 ++ activemq-osgi/pom.xml | 22 +++++++++++++++---- .../activemq/osgi/ActiveMQServiceFactory.java | 2 +- pom.xml | 12 ++++++---- 7 files changed, 36 insertions(+), 14 deletions(-) diff --git a/activemq-camel/pom.xml b/activemq-camel/pom.xml index 37877e0f5a..05f743cf2d 100644 --- a/activemq-camel/pom.xml +++ b/activemq-camel/pom.xml @@ -32,7 +32,7 @@ - org.springframework.jms*;version="[3,5)", + org.springframework.jms*;version="[4,5)", org.apache.activemq.pool, org.apache.camel*;version="${camel-version-range}", * @@ -102,7 +102,7 @@ org.apache.camel - camel-test-spring3 + camel-test-spring test diff --git a/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdExternalCamelFeatureTest.java b/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdExternalCamelFeatureTest.java index b948ecc565..b25f05e2d9 100644 --- a/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdExternalCamelFeatureTest.java +++ b/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdExternalCamelFeatureTest.java @@ -26,11 +26,12 @@ import java.util.concurrent.Callable; import org.junit.Ignore; import org.junit.Test; +import org.junit.runner.RunWith; import org.ops4j.pax.exam.Configuration; import org.ops4j.pax.exam.Option; +import org.ops4j.pax.exam.junit.PaxExam; -//@RunWith(PaxExam.class) -@Ignore +@RunWith(PaxExam.class) public class ActiveMQBrokerNdExternalCamelFeatureTest extends AbstractFeatureTest { @Configuration @@ -53,6 +54,7 @@ public class ActiveMQBrokerNdExternalCamelFeatureTest extends AbstractFeatureTes assertBrokerStarted(); withinReason(new Runnable() { + @Override public void run() { getBundle("org.apache.activemq.activemq-camel"); } diff --git a/activemq-karaf/src/main/resources/features-core.xml b/activemq-karaf/src/main/resources/features-core.xml index 0f318c6444..0e615abcdd 100644 --- a/activemq-karaf/src/main/resources/features-core.xml +++ b/activemq-karaf/src/main/resources/features-core.xml @@ -22,7 +22,7 @@ - spring + spring mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1 mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1 mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1 diff --git a/activemq-karaf/src/main/resources/features.xml b/activemq-karaf/src/main/resources/features.xml index 7299ef7409..586e3242d5 100644 --- a/activemq-karaf/src/main/resources/features.xml +++ b/activemq-karaf/src/main/resources/features.xml @@ -42,6 +42,8 @@ mvn:org.apache.activemq/activemq-camel/${project.version} camel-jms camel + camel-spring + camel-blueprint diff --git a/activemq-osgi/pom.xml b/activemq-osgi/pom.xml index d389669518..80eecf45a6 100644 --- a/activemq-osgi/pom.xml +++ b/activemq-osgi/pom.xml @@ -57,9 +57,9 @@ org.apache.zookeeper*;resolution:=optional, org.fusesource.leveldbjni*;resolution:=optional, org.fusesource.hawtjni*;resolution:=optional, - org.springframework.jms*;version="[3,5)";resolution:=optional, - org.springframework.transaction*;version="[3,5)";resolution:=optional, - org.springframework*;version="[3,5)";resolution:=optional, + org.springframework.jms*;version="[4,5)";resolution:=optional, + org.springframework.transaction*;version="[4,5)";resolution:=optional, + org.springframework*;version="[4,5)";resolution:=optional, org.xmlpull*;resolution:=optional, scala*;resolution:=optional, javax.annotation*, @@ -174,6 +174,11 @@ ${project.groupId} activemq-spring + + + org.apache.camel + camel-blueprint + org.springframework.osgi @@ -247,7 +252,16 @@ jar false ${basedir}/target/extra-resources/ - camel-osgi.xsd,camel-spring.xsd + camel-spring.xsd + + + org.apache.camel + camel-blueprint + ${camel-version} + jar + false + ${basedir}/target/extra-resources/ + camel-blueprint.xsd diff --git a/activemq-osgi/src/main/java/org/apache/activemq/osgi/ActiveMQServiceFactory.java b/activemq-osgi/src/main/java/org/apache/activemq/osgi/ActiveMQServiceFactory.java index 7c8d177588..29b02d6f24 100644 --- a/activemq-osgi/src/main/java/org/apache/activemq/osgi/ActiveMQServiceFactory.java +++ b/activemq-osgi/src/main/java/org/apache/activemq/osgi/ActiveMQServiceFactory.java @@ -26,7 +26,7 @@ import java.util.Properties; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.spring.SpringBrokerContext; import org.apache.activemq.spring.Utils; -import org.apache.camel.osgi.CamelContextFactoryBean; +import org.apache.camel.blueprint.CamelContextFactoryBean; import org.osgi.framework.BundleContext; import org.osgi.service.cm.ConfigurationException; import org.osgi.service.cm.ManagedServiceFactory; diff --git a/pom.xml b/pom.xml index 098697df69..982c41154d 100644 --- a/pom.xml +++ b/pom.xml @@ -47,8 +47,8 @@ 1.1.0 1.1.1 1.0-M3-dev - 2.16.3 - [2.16,3) + 2.18.4 + [2.18,3) 2.2 1.9.2 3.2.2 @@ -582,6 +582,11 @@ camel-spring ${camel-version} + + org.apache.camel + camel-blueprint + ${camel-version} + org.apache.camel camel-jms @@ -592,10 +597,9 @@ camel-test ${camel-version} - org.apache.camel - camel-test-spring3 + camel-test-spring ${camel-version}