ACS-1253 Enable Camel JMX management (#295)

- enable Camel JMX management
- disable JMS connection idle timeout
- update ActiveMQ broker URLs to use NIO
This commit is contained in:
CezarLeahu
2021-02-19 14:52:28 +02:00
committed by GitHub
parent 6f17779e71
commit bb19c61253
6 changed files with 15 additions and 5 deletions

View File

@@ -22,6 +22,7 @@
<bean id="pooledConnectionFactory" class="org.apache.activemq.pool.PooledConnectionFactory"
init-method="start" destroy-method="stop">
<property name="maxConnections" value="${messaging.broker.connections.max}" />
<property name="createConnectionOnStartup" value="false"/>
<property name="connectionFactory" ref="activeMqConnectionFactory" />
</bean>
@@ -85,7 +86,7 @@
<camelContext id="alfrescoCamelContext" xmlns="http://camel.apache.org/schema/spring" useBreadcrumb="true">
<contextScan/>
<camel:jmxAgent id="agent" mbeanObjectDomainName="Alfresco.Camel" />
<jmxAgent id="agent" mbeanObjectDomainName="Alfresco.Camel" />
<template id="camelProducerTemplate" defaultEndpoint="direct:alfresco.default" />
</camelContext>

View File

@@ -1,5 +1,5 @@
# External failover broker at tcp://localhost
messaging.broker.url=failover:(tcp://localhost:61616)?timeout=3000&jms.useCompression=true
# External failover broker at nio://localhost ("nio" = "tcp" through the java.nio API)
messaging.broker.url=failover:(nio://localhost:61616)?timeout=3000&jms.useCompression=true
messaging.broker.ssl=false
messaging.broker.username=
messaging.broker.password=