Description
Hello,
After upgrading from 5.14 to 5.17.2 latest getting below error:
2022-10-08 06:49:04,821 | WARN | Transport Connection to: tcp://10.10.12.12:11364 failed: User name [admin] or password is invalid. | org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ Transport: ssl:///10.10.12.12:11364 2022-10-08 06:49:06,820 | INFO | Stopping tcp://10.10.12.12:11364 because Failed with SecurityException: User name [admin] or password is invalid. | org.apache.activemq.broker.TransportConnection | ActiveMQ BrokerService[dbaas_broker] Task-2 2022-10-08 06:54:12,459 | WARN | Failed to add Connection id=ID:server-33355-1665211732359-5:2, clientId=ID:server-33355-1665211732359-5:2, clientIP=10.12.13.13 due to User name [admin] or password is invalid. | org.apache.activemq.broker.TransportConnection | ActiveMQ Transport: ssl:///10.10.12.12:39447
In 5.14 activemq.xml file I was using below bean.
<bean class="org.jasypt.spring31.properties.EncryptablePropertyPlaceholderConfigurer" id="propertyConfigurer"> <constructor-arg ref="configurationEncryptor" /> <property name="location" value="file:${activemq.base}/conf/credentials-enc.properties" />
Based on some suggestions in some blogs I used below bean in 5.17.2
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <value>file:${activemq.base}/conf/credentials-enc.properties</value> </property> </bean>
However I feel like I'm missing <constructor-arg ref="configurationEncryptor" /> here in 5.17.2 configuration file.
Please help me out what's the right springframework bean for 5.17.2 to work well with encrypted credential file.
I dont see it anywhere in ActiveMQ documentation of 5.17.2.