Enable messaging through Spring profile as "activeMqEnabled" (FINERACT-1193)
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
02408f9165
commit
704d73dd3e
@@ -203,6 +203,11 @@ Instructions to run Apache RAT (Release Audit Tool)
|
|||||||
2. Run `./gradlew rat`. A report will be generated under build/reports/rat/rat-report.txt
|
2. Run `./gradlew rat`. A report will be generated under build/reports/rat/rat-report.txt
|
||||||
|
|
||||||
|
|
||||||
|
Instructions to enable ActiveMQ
|
||||||
|
============
|
||||||
|
Messaging configuration is disabled by default. If you want to enable it and register some message listeners, application needs to be started with the proper Spring profile, ie `-Dspring.profiles.active=activeMqEnabled` (or one of the other Spring ways to configure it).
|
||||||
|
|
||||||
|
|
||||||
Checkstyle and Spotless
|
Checkstyle and Spotless
|
||||||
============
|
============
|
||||||
|
|
||||||
|
|||||||
+2
@@ -27,12 +27,14 @@ import org.slf4j.LoggerFactory;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.context.annotation.Profile;
|
||||||
import org.springframework.core.env.Environment;
|
import org.springframework.core.env.Environment;
|
||||||
import org.springframework.jms.connection.CachingConnectionFactory;
|
import org.springframework.jms.connection.CachingConnectionFactory;
|
||||||
import org.springframework.jms.core.JmsTemplate;
|
import org.springframework.jms.core.JmsTemplate;
|
||||||
import org.springframework.jms.listener.DefaultMessageListenerContainer;
|
import org.springframework.jms.listener.DefaultMessageListenerContainer;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
|
@Profile("activeMqEnabled")
|
||||||
public class MessagingConfiguration {
|
public class MessagingConfiguration {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|||||||
Reference in New Issue
Block a user