awasum commented on a change in pull request #11: Thymeleaf templating for Email
URL:
https://github.com/apache/fineract-cn-notifications/pull/11#discussion_r291155561
##########
File path:
service/src/main/java/org/apache/fineract/cn/notification/service/internal/config/NotificationConfiguration.java
##########
@@ -103,23 +108,24 @@ public void configurePathMatch(final PathMatchConfigurer
configurer) {
}
@Bean
- public PooledConnectionFactory jmsFactory() {
+ public PooledConnectionFactory pooledConnectionFactory() {
PooledConnectionFactory pooledConnectionFactory = new
PooledConnectionFactory();
ActiveMQConnectionFactory activeMQConnectionFactory = new
ActiveMQConnectionFactory();
-
activeMQConnectionFactory.setBrokerURL(this.environment.getProperty("activemq.brokerUrl",
"vm://localhost?broker.persistent=falseac"));
+
activeMQConnectionFactory.setBrokerURL(this.environment.getProperty("activemq.brokerUrl","vm://localhost?broker.persistent=false"));
pooledConnectionFactory.setConnectionFactory(activeMQConnectionFactory);
return pooledConnectionFactory;
}
@Bean
public JmsListenerContainerFactory
jmsListenerContainerFactory(PooledConnectionFactory jmsFactory) {
- DefaultJmsListenerContainerFactory factory = new
DefaultJmsListenerContainerFactory();
+ final DefaultJmsListenerContainerFactory factory = new
DefaultJmsListenerContainerFactory();
+ factory.setConnectionFactory(jmsFactory);
factory.setPubSubDomain(true);
factory.setConnectionFactory(jmsFactory);
factory.setErrorHandler(ex -> {
- loggerBean().error(ex.getCause().toString());
+ loggerBean().warn(ex.getCause().toString());
});
-
factory.setConcurrency(this.environment.getProperty("activemq.concurrency",
"1-1"));
+
factory.setConcurrency(this.environment.getProperty("activemq.concurrency","1-1"));
Review comment:
Are u doing this twice as I see another in ur properties file?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services