This closes #3488
This commit is contained in:
commit
5514bca9a6
|
@ -29,7 +29,7 @@ public class JDBCDataSourceUtils {
|
||||||
ActiveMQJournalLogger.LOGGER.initializingJdbcDataSource(dataSourceClassName, dataSourceProperties
|
ActiveMQJournalLogger.LOGGER.initializingJdbcDataSource(dataSourceClassName, dataSourceProperties
|
||||||
.keySet()
|
.keySet()
|
||||||
.stream()
|
.stream()
|
||||||
.map(key -> key + "=" + dataSourceProperties.get(key))
|
.map(key -> key + "=" + (key.equalsIgnoreCase("password") ? "****" : dataSourceProperties.get(key)))
|
||||||
.collect(Collectors.joining(", ", "{", "}")));
|
.collect(Collectors.joining(", ", "{", "}")));
|
||||||
try {
|
try {
|
||||||
DataSource dataSource = (DataSource) Class.forName(dataSourceClassName).newInstance();
|
DataSource dataSource = (DataSource) Class.forName(dataSourceClassName).newInstance();
|
||||||
|
|
Loading…
Reference in New Issue