diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index a1012ec96b2..77784031fb3 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -264,6 +264,11 @@ + + org.springframework.boot + spring-boot-starter-activemq + 1.4.0.BUILD-SNAPSHOT + org.springframework.boot spring-boot-starter-actuator diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index cb421abc240..05696d83b7e 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -3859,6 +3859,10 @@ Spring Boot can also configure a `ConnectionFactory` when it detects that Active available on the classpath. If the broker is present, an embedded broker is started and configured automatically (as long as no broker URL is specified through configuration). +NOTE: If you are using `spring-boot-starter-activemq` the necessary dependencies to +connect or embed an ActiveMQ instance are provided, as well as the Spring infrastructure +to integrate with JMS. + ActiveMQ configuration is controlled by external configuration properties in `+spring.activemq.*+`. For example, you might declare the following section in `application.properties`: diff --git a/spring-boot-samples/spring-boot-sample-activemq/pom.xml b/spring-boot-samples/spring-boot-sample-activemq/pom.xml index 55e2374bcb7..43535694209 100644 --- a/spring-boot-samples/spring-boot-sample-activemq/pom.xml +++ b/spring-boot-samples/spring-boot-sample-activemq/pom.xml @@ -21,15 +21,7 @@ org.springframework.boot - spring-boot-starter - - - org.springframework - spring-jms - - - org.apache.activemq - activemq-broker + spring-boot-starter-activemq org.springframework.boot diff --git a/spring-boot-starters/pom.xml b/spring-boot-starters/pom.xml index ebafef6c887..afbe766a169 100644 --- a/spring-boot-starters/pom.xml +++ b/spring-boot-starters/pom.xml @@ -21,6 +21,7 @@ spring-boot-starter + spring-boot-starter-activemq spring-boot-starter-amqp spring-boot-starter-aop spring-boot-starter-artemis diff --git a/spring-boot-starters/spring-boot-starter-activemq/pom.xml b/spring-boot-starters/spring-boot-starter-activemq/pom.xml new file mode 100644 index 00000000000..36507263d0e --- /dev/null +++ b/spring-boot-starters/spring-boot-starter-activemq/pom.xml @@ -0,0 +1,34 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starters + 1.4.0.BUILD-SNAPSHOT + + spring-boot-starter-activemq + Spring Boot ActiveMQ Starter + Starter for JMS messaging using Apache ActiveMQ + http://projects.spring.io/spring-boot/ + + Pivotal Software, Inc. + http://www.spring.io + + + ${basedir}/../.. + + + + org.springframework.boot + spring-boot-starter + + + org.springframework + spring-jms + + + org.apache.activemq + activemq-broker + + + diff --git a/spring-boot-starters/spring-boot-starter-activemq/src/main/resources/META-INF/spring.provides b/spring-boot-starters/spring-boot-starter-activemq/src/main/resources/META-INF/spring.provides new file mode 100644 index 00000000000..c49ebaabdae --- /dev/null +++ b/spring-boot-starters/spring-boot-starter-activemq/src/main/resources/META-INF/spring.provides @@ -0,0 +1 @@ +provides: activemq-broker,spring-jms