Deprecate hornetq support

Closes gh-6034
This commit is contained in:
Stephane Nicoll 2016-05-26 14:14:59 +02:00
parent 280ac90cef
commit 44b4df2d3d
4 changed files with 56 additions and 2 deletions

View File

@ -3898,6 +3898,9 @@ NOTE: You should not try and use Artemis and HornetQ and the same time.
[[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

View File

@ -7,8 +7,9 @@
<version>1.4.0.BUILD-SNAPSHOT</version>
</parent>
<artifactId>spring-boot-starter-hornetq</artifactId>
<name>Spring Boot HornetQ Starter</name>
<description>Starter for JMS messaging using HornetQ</description>
<name>spring-boot-starter-hornetq (DEPRECATED)</name>
<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>
<organization>
<name>Pivotal Software, Inc.</name>

View File

@ -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");
}
}

View File

@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.boot.starter.hornetq.HornetQStarterDeprecationWarningAutoConfiguration