You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/ActiveMQProperties.java
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,10 @@ public class ActiveMQProperties {
32
32
33
33
privatebooleanpooled = false;
34
34
35
+
privateStringuser;
36
+
37
+
privateStringpassword;
38
+
35
39
// Will override brokerURL if inMemory is set to true
36
40
publicStringgetBrokerUrl() {
37
41
if (this.inMemory) {
@@ -60,4 +64,20 @@ public void setPooled(boolean pooled) {
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JmsTemplateAutoConfiguration.java
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -64,15 +64,26 @@ protected static class ActiveMQConnectionFactoryCreator {
64
64
65
65
@Bean
66
66
publicConnectionFactoryjmsConnectionFactory() {
67
+
ConnectionFactoryconnectionFactory;
68
+
if (this.config.getUser() != null && !"".equals(this.config.getUser())
0 commit comments