Skip to content

Commit

Permalink
Deprecate hornetq support
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed May 26, 2016
1 parent 280ac90 commit 44b4df2
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 2 deletions.
3 changes: 3 additions & 0 deletions spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions spring-boot-starters/spring-boot-starter-hornetq/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
@@ -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");
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.boot.starter.hornetq.HornetQStarterDeprecationWarningAutoConfiguration

0 comments on commit 44b4df2

Please sign in to comment.