mirror of https://github.com/apache/activemq.git
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
This commit is contained in:
parent
2a0b785a04
commit
a6782443c1
|
@ -32,7 +32,7 @@
|
|||
|
||||
<properties>
|
||||
<activemq.osgi.import.pkg>
|
||||
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 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-test-spring3</artifactId>
|
||||
<artifactId>camel-test-spring</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
<!-- Bundles needed if only client will be deployed in the container -->
|
||||
<feature name="activemq-client" description="ActiveMQ client libraries" version="${project.version}" resolver="(obr)" start-level="50">
|
||||
<feature version="[3.2,5)">spring</feature>
|
||||
<feature version="[4,5)">spring</feature>
|
||||
<bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
|
||||
<bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
|
||||
<bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
|
||||
|
|
|
@ -42,6 +42,8 @@
|
|||
<bundle>mvn:org.apache.activemq/activemq-camel/${project.version}</bundle>
|
||||
<feature version="${camel-version-range}">camel-jms</feature>
|
||||
<feature version="${camel-version-range}">camel</feature>
|
||||
<feature version="${camel-version-range}">camel-spring</feature>
|
||||
<feature version="${camel-version-range}">camel-blueprint</feature>
|
||||
</feature>
|
||||
|
||||
<feature name="activemq-web-console" version="${project.version}" resolver="(obr)" start-level="50">
|
||||
|
|
|
@ -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 @@
|
|||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>activemq-spring</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-blueprint</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.osgi</groupId>
|
||||
|
@ -247,7 +252,16 @@
|
|||
<type>jar</type>
|
||||
<overWrite>false</overWrite>
|
||||
<outputDirectory>${basedir}/target/extra-resources/</outputDirectory>
|
||||
<includes>camel-osgi.xsd,camel-spring.xsd</includes>
|
||||
<includes>camel-spring.xsd</includes>
|
||||
</artifactItem>
|
||||
<artifactItem>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-blueprint</artifactId>
|
||||
<version>${camel-version}</version>
|
||||
<type>jar</type>
|
||||
<overWrite>false</overWrite>
|
||||
<outputDirectory>${basedir}/target/extra-resources/</outputDirectory>
|
||||
<includes>camel-blueprint.xsd</includes>
|
||||
</artifactItem>
|
||||
</artifactItems>
|
||||
</configuration>
|
||||
|
|
|
@ -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;
|
||||
|
|
12
pom.xml
12
pom.xml
|
@ -47,8 +47,8 @@
|
|||
<aries-version>1.1.0</aries-version>
|
||||
<aries-transaction-version>1.1.1</aries-transaction-version>
|
||||
<axion-version>1.0-M3-dev</axion-version>
|
||||
<camel-version>2.16.3</camel-version>
|
||||
<camel-version-range>[2.16,3)</camel-version-range>
|
||||
<camel-version>2.18.4</camel-version>
|
||||
<camel-version-range>[2.18,3)</camel-version-range>
|
||||
<cglib-version>2.2</cglib-version>
|
||||
<commons-beanutils-version>1.9.2</commons-beanutils-version>
|
||||
<commons-collections-version>3.2.2</commons-collections-version>
|
||||
|
@ -582,6 +582,11 @@
|
|||
<artifactId>camel-spring</artifactId>
|
||||
<version>${camel-version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-blueprint</artifactId>
|
||||
<version>${camel-version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-jms</artifactId>
|
||||
|
@ -592,10 +597,9 @@
|
|||
<artifactId>camel-test</artifactId>
|
||||
<version>${camel-version}</version>
|
||||
</dependency>
|
||||
<!-- when upgrading to Spring 4.x then use camel-test-spring -->
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-test-spring3</artifactId>
|
||||
<artifactId>camel-test-spring</artifactId>
|
||||
<version>${camel-version}</version>
|
||||
</dependency>
|
||||
|
||||
|
|
Loading…
Reference in New Issue