parent
280ac90cef
commit
44b4df2d3d
|
@ -3898,6 +3898,9 @@ NOTE: You should not try and use Artemis and HornetQ and the same time.
|
||||||
|
|
||||||
[[boot-features-hornetq]]
|
[[boot-features-hornetq]]
|
||||||
==== HornetQ support
|
==== 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
|
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
|
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
|
configured automatically (unless the mode property has been explicitly set). The supported
|
||||||
|
|
|
@ -7,8 +7,9 @@
|
||||||
<version>1.4.0.BUILD-SNAPSHOT</version>
|
<version>1.4.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-boot-starter-hornetq</artifactId>
|
<artifactId>spring-boot-starter-hornetq</artifactId>
|
||||||
<name>Spring Boot HornetQ Starter</name>
|
<name>spring-boot-starter-hornetq (DEPRECATED)</name>
|
||||||
<description>Starter for JMS messaging using HornetQ</description>
|
<description>Starter for JMS messaging using HornetQ. Deprecated as of 1.4 in favor
|
||||||
|
of spring-boot-starter-artemis</description>
|
||||||
<url>http://projects.spring.io/spring-boot/</url>
|
<url>http://projects.spring.io/spring-boot/</url>
|
||||||
<organization>
|
<organization>
|
||||||
<name>Pivotal Software, Inc.</name>
|
<name>Pivotal Software, Inc.</name>
|
||||||
|
|
|
@ -0,0 +1,47 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2012-2016 the original author or authors.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.springframework.boot.starter.hornetq;
|
||||||
|
|
||||||
|
import javax.annotation.PostConstruct;
|
||||||
|
|
||||||
|
import org.apache.commons.logging.Log;
|
||||||
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
|
||||||
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@link EnableAutoConfiguration Auto-configuration} to print a deprecation warning about
|
||||||
|
* the starter.
|
||||||
|
*
|
||||||
|
* @author Stephane Nicoll
|
||||||
|
* @since 1.4.0
|
||||||
|
*/
|
||||||
|
@Configuration
|
||||||
|
@Deprecated
|
||||||
|
public class HornetQStarterDeprecationWarningAutoConfiguration {
|
||||||
|
|
||||||
|
private static final Log logger = LogFactory
|
||||||
|
.getLog(HornetQStarterDeprecationWarningAutoConfiguration.class);
|
||||||
|
|
||||||
|
@PostConstruct
|
||||||
|
public void logWarning() {
|
||||||
|
logger.warn("spring-boot-starter-hornetq is deprecated as of Spring Boot 1.4, "
|
||||||
|
+ "please migrate to spring-boot-starter-artemis");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Auto Configure
|
||||||
|
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||||
|
org.springframework.boot.starter.hornetq.HornetQStarterDeprecationWarningAutoConfiguration
|
Loading…
Reference in New Issue