ActiveMQ Configuration - TcmExtensions/TcmCDService GitHub Wiki

Introduction

The ActiveMQ cache type assumes an active and configured ActiveMQ messaging server is available in the network.

By default the ActiveMQ messaging service will accept connections on port 61616.

Configuration

The ActiveMQ cache type is configured as follows:

<!-- ActiveMQCache caches items until a cache flush instruction is received from Tridion over Apache ActiveMQ.
	 Note that this requires configuring the com.tridion.tcmcdservice.jms.JMSXMLCacheConnector on the Tridion Java side.	-->

<cacheType type="TcmCDService.CacheTypes.ActiveMQCache, TcmCDService.ActiveMQ">
<setting key="brokerUrl">activemq:tcp://10.20.146.226:61616</setting>
<setting key="topic">TridionCCS</setting>
<setting key="username"></setting>
<setting key="password"></setting>
</cacheType>

The Tridion deployer and presentation configuration cd_storage_conf.xml configuration needs to be updated accordingly to send Xml serialized CacheEvents which TcmCDService can understand:

<RemoteSynchronization Queuesize="4096" ServiceMonitorInterval="10000">
<Connector Class="com.tridion.tcmcdservice.jms.JMSXMLCacheChannelConnector" Topic="Tridion"> 
	<JndiContext>
		<Property Name="java.naming.factory.initial" Value="org.apache.activemq.jndi.ActiveMQInitialContextFactory" />
		<Property Name="java.naming.provider.url" Value="tcp://ekstg.emirates.com:61616?soTimeout=5000" />
		<Property Name="topic.Tridion" Value="TridionCCS" />
	</JndiContext>
</Connector>
</RemoteSynchronization>

The configuration is nearly identical to the default Tridion JMS configuration, however in this case the com.tridion.tcmcdservice.jms.JMSXMLCacheChannelConnector is used.

⚠️ **GitHub.com Fallback** ⚠️