Add HornetQ JMS support
Provide auto-configuration support for HornetQ JMS broker, along with an additional starter POM. The connection factory connects to a broker available on the local machine by default. A configuration switch allows to enable an embedded mode that starts HornetQ as part of the application. In such a mode, the spring.hornetq.embedded.* properties provide additional options to configure the embedded broker. In particular, message persistence and data directory locations can be specified. It is also possible to define the queue(s) and topic(s) to create on startup. Fixes: gh-765
This commit is contained in:
committed by
Phillip Webb
parent
67beba9464
commit
5a69bb9267
@@ -242,6 +242,17 @@ content into your application; rather pick only the properties that you need.
|
||||
spring.activemq.in-memory=true # broker kind to create if no broker-url is specified
|
||||
spring.activemq.pooled=false
|
||||
|
||||
# HornetQ ({sc-spring-boot-autoconfigure}/jms/HornetQProperties.{sc-ext}[HornetQProperties])
|
||||
spring.hornetq.mode= # connection mode (native, embedded)
|
||||
spring.hornetq.host=localhost # hornetQ host (native mode)
|
||||
spring.hornetq.port=5445 # hornetQ port (native mode)
|
||||
spring.hornetq.embedded.enabled=true # if the embedded server is enabled (needs hornetq-jms-server.jar)
|
||||
spring.hornetq.embedded.persistent=false # message persistence
|
||||
spring.hornetq.embedded.data-directory= # location of data content (when persistence is enabled)
|
||||
spring.hornetq.embedded.queues= # comma separate queues to create on startup
|
||||
spring.hornetq.embedded.topics= # comma separate topics to create on startup
|
||||
spring.hornetq.embedded.cluster-password = # customer password (randomly generated by default)
|
||||
|
||||
# JMS ({sc-spring-boot-autoconfigure}/jms/JmsTemplateProperties.{sc-ext}[JmsTemplateProperties])
|
||||
spring.jms.pub-sub-domain= # false for queue (default), true for topic
|
||||
|
||||
|
||||
@@ -53,6 +53,12 @@ The following auto-configuration classes are from the `spring-boot-autoconfigure
|
||||
|{sc-spring-boot-autoconfigure}/web/HttpMessageConvertersAutoConfiguration.{sc-ext}[HttpMessageConvertersAutoConfiguration]
|
||||
|{dc-spring-boot-autoconfigure}/web/HttpMessageConvertersAutoConfiguration.{dc-ext}[javadoc]
|
||||
|
||||
|{sc-spring-boot-autoconfigure}/jms/ActiveMQAutoConfiguration.{sc-ext}[ActiveMQAutoConfiguration]
|
||||
|{dc-spring-boot-autoconfigure}/jms/ActiveMQAutoConfiguration.{dc-ext}[javadoc]
|
||||
|
||||
|{sc-spring-boot-autoconfigure}/jms/HornetQAutoConfiguration.{sc-ext}[HornetQAutoConfiguration]
|
||||
|{dc-spring-boot-autoconfigure}/jms/HornetQAutoConfiguration.{dc-ext}[javadoc]
|
||||
|
||||
|{sc-spring-boot-autoconfigure}/jms/JmsTemplateAutoConfiguration.{sc-ext}[JmsTemplateAutoConfiguration]
|
||||
|{dc-spring-boot-autoconfigure}/jms/JmsTemplateAutoConfiguration.{dc-ext}[javadoc]
|
||||
|
||||
|
||||
@@ -245,6 +245,9 @@ and Hibernate.
|
||||
|`spring-boot-starter-groovy-templates`
|
||||
|Support for the Groovy templating engine
|
||||
|
||||
|`spring-boot-starter-hornetq`
|
||||
|Support for ``Java Message Service API'' via HornetQ.
|
||||
|
||||
|`spring-boot-starter-integration`
|
||||
|Support for common `spring-integration` modules.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user