Remove support for HornetQ following its deprecation in 1.4
See gh-6971
This commit is contained in:
@@ -854,20 +854,6 @@ content into your application; rather pick only the properties that you need.
|
||||
spring.batch.schema=classpath:org/springframework/batch/core/schema-@@platform@@.sql # Path to the SQL file to use to initialize the database schema.
|
||||
spring.batch.table-prefix= # Table prefix for all the batch meta-data tables.
|
||||
|
||||
# HORNETQ ({sc-spring-boot-autoconfigure}/jms/hornetq/HornetQProperties.{sc-ext}[HornetQProperties])
|
||||
spring.hornetq.embedded.cluster-password= # Cluster password. Randomly generated on startup by default.
|
||||
spring.hornetq.embedded.data-directory= # Journal file directory. Not necessary if persistence is turned off.
|
||||
spring.hornetq.embedded.enabled=true # Enable embedded mode if the HornetQ server APIs are available.
|
||||
spring.hornetq.embedded.persistent=false # Enable persistent store.
|
||||
spring.hornetq.embedded.queues= # Comma-separated list of queues to create on startup.
|
||||
spring.hornetq.embedded.server-id= # Server id. By default, an auto-incremented counter is used.
|
||||
spring.hornetq.embedded.topics= # Comma-separated list of topics to create on startup.
|
||||
spring.hornetq.host=localhost # HornetQ broker host.
|
||||
spring.hornetq.mode= # HornetQ deployment mode, auto-detected by default.
|
||||
spring.hornetq.password= # Login password of the broker.
|
||||
spring.hornetq.port=5445 # HornetQ broker port.
|
||||
spring.hornetq.user= # Login user of the broker.
|
||||
|
||||
# JMS ({sc-spring-boot-autoconfigure}/jms/JmsProperties.{sc-ext}[JmsProperties])
|
||||
spring.jms.jndi-name= # Connection factory JNDI name. When set, takes precedence to others connection factory auto-configurations.
|
||||
spring.jms.listener.acknowledge-mode= # Acknowledge mode of the container. By default, the listener is transacted with automatic acknowledgment.
|
||||
|
||||
@@ -4123,11 +4123,6 @@ resolved against their provided names.
|
||||
|
||||
[[boot-features-artemis]]
|
||||
==== Artemis support
|
||||
Apache Artemis was formed in 2015 when HornetQ was donated to the Apache Foundation. Make
|
||||
sure to use that rather than the deprecated HornetQ support.
|
||||
|
||||
NOTE: You should not try and use Artemis and HornetQ at the same time.
|
||||
|
||||
Spring Boot can auto-configure a `ConnectionFactory` when it detects that Artemis is
|
||||
available on the classpath. If the broker is present, an embedded broker is started and
|
||||
configured automatically (unless the mode property has been explicitly set). The supported
|
||||
@@ -4172,55 +4167,6 @@ through configuration.
|
||||
|
||||
|
||||
|
||||
[[boot-features-hornetq]]
|
||||
==== HornetQ support
|
||||
|
||||
NOTE: HornetQ is deprecated in 1.4, consider migrating to <<boot-features-artemis,artemis>>
|
||||
|
||||
Spring Boot can auto-configure a `ConnectionFactory` when it detects that HornetQ is
|
||||
available on the classpath. If the broker is present, an embedded broker is started and
|
||||
configured automatically (unless the mode property has been explicitly set). The supported
|
||||
modes are: `embedded` (to make explicit that an embedded broker is required and should
|
||||
lead to an error if the broker is not available in the classpath), and `native` to connect
|
||||
to a broker using the `netty` transport protocol. When the latter is configured, Spring
|
||||
Boot configures a `ConnectionFactory` connecting to a broker running on the local machine
|
||||
with the default settings.
|
||||
|
||||
NOTE: If you are using `spring-boot-starter-hornetq` the necessary dependencies to
|
||||
connect to an existing HornetQ instance are provided, as well as the Spring infrastructure
|
||||
to integrate with JMS. Adding `org.hornetq:hornetq-jms-server` to your application allows
|
||||
you to use the embedded mode.
|
||||
|
||||
HornetQ configuration is controlled by external configuration properties in
|
||||
`+spring.hornetq.*+`. For example, you might declare the following section in
|
||||
`application.properties`:
|
||||
|
||||
[source,properties,indent=0]
|
||||
----
|
||||
spring.hornetq.mode=native
|
||||
spring.hornetq.host=192.168.1.210
|
||||
spring.hornetq.port=9876
|
||||
spring.hornetq.user=admin
|
||||
spring.hornetq.password=secret
|
||||
----
|
||||
|
||||
When embedding the broker, you can choose if you want to enable persistence, and the list
|
||||
of destinations that should be made available. These can be specified as a comma-separated
|
||||
list to create them with the default options; or you can define bean(s) of type
|
||||
`org.hornetq.jms.server.config.JMSQueueConfiguration` or
|
||||
`org.hornetq.jms.server.config.TopicConfiguration`, for advanced queue and topic
|
||||
configurations respectively.
|
||||
|
||||
See
|
||||
{sc-spring-boot-autoconfigure}/jms/hornetq/HornetQProperties.{sc-ext}[`HornetQProperties`]
|
||||
for more of the supported options.
|
||||
|
||||
No JNDI lookup is involved at all and destinations are resolved against their names,
|
||||
either using the '`name`' attribute in the HornetQ configuration or the names provided
|
||||
through configuration.
|
||||
|
||||
|
||||
|
||||
[[boot-features-jms-jndi]]
|
||||
==== Using a JNDI ConnectionFactory
|
||||
If you are running your application in an Application Server Spring Boot will attempt to
|
||||
|
||||
Reference in New Issue
Block a user