<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to completely disable Messaging subsystem ? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-completely-disable-messaging-subsystem/m-p/127123#M34561</link>
    <description>&lt;P&gt;If you are using Alfresco 7.4, you can add following setting in Alfresco repository:&lt;/P&gt;
&lt;PRE&gt;repo.event2.enabled=false&lt;/PRE&gt;
&lt;P&gt;Alternatively you can override default Alfresco Repository Spring Beans to avoid running that task:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/2ae93ee6294e55a37facc131f0acd7342e3b8d22/repository/src/main/resources/alfresco/events2-context.xml#L66" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/blob/2ae93ee6294e55a37facc131f0acd7342e3b8d22/repository/src/main/resources/alfresco/events2-context.xml#L66&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 11:21:29 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2023-08-23T11:21:29Z</dc:date>
    <item>
      <title>How to completely disable Messaging subsystem ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-completely-disable-messaging-subsystem/m-p/127122#M34560</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have ACS instances dedicated to Solr Indexation.&amp;nbsp; On theses instances, I disabled transform, events and there are not part of the cluster. I don't want them to connect to MQ either so I set&amp;nbsp;&lt;SPAN&gt;messaging.subsystem.autoStart=false property and remove MQ connection properties.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I start Tomcat, Messaging subsystem is not started, no connection attempt to MQ is made, it's what I want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, everyday after 07:00 am, Messaging subsystem starts and try to connect to MQ indefinitely. I don't understand why the subsystem is started. I can't find any scheduled job starting at this time that starts the subsystem. Is it possible to disable it ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;2023-08-23 07:16:43,629 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [eventAsyncDequeueThreadPool1] Starting 'Messaging' subsystem, ID: [Messaging, default]
2023-08-23 07:16:46,379 INFO  [org.apache.camel.impl.engine.AbstractCamelContext] [eventAsyncDequeueThreadPool1] Apache Camel 3.18.2 (alfrescoCamelContext) is starting
2023-08-23 07:16:46,643 INFO  [org.apache.camel.impl.engine.AbstractCamelContext] [eventAsyncDequeueThreadPool1] Routes startup (started:5)
2023-08-23 07:16:46,643 INFO  [org.apache.camel.impl.engine.AbstractCamelContext] [eventAsyncDequeueThreadPool1]     Started alfresco.default.deadLetter (direct-vm://alfresco.default)
2023-08-23 07:16:46,644 INFO  [org.apache.camel.impl.engine.AbstractCamelContext] [eventAsyncDequeueThreadPool1]     Started route1 (jms://acs-repo-rendition-events)
2023-08-23 07:16:46,644 INFO  [org.apache.camel.impl.engine.AbstractCamelContext] [eventAsyncDequeueThreadPool1]     Started alfresco.events -&amp;gt; topic:alfresco.repo.events (direct-vm://alfresco.events)
2023-08-23 07:16:46,644 INFO  [org.apache.camel.impl.engine.AbstractCamelContext] [eventAsyncDequeueThreadPool1]     Started route2 (jms://acs-repo-transform-request)
2023-08-23 07:16:46,644 INFO  [org.apache.camel.impl.engine.AbstractCamelContext] [eventAsyncDequeueThreadPool1]     Started queue:org.alfresco.transform.t-reply.acs -&amp;gt; consume (jms://org.alfresco.transform.68c8906a-a55a.t-reply)
2023-08-23 07:16:46,644 INFO  [org.apache.camel.impl.engine.AbstractCamelContext] [eventAsyncDequeueThreadPool1] Apache Camel 3.18.2 (alfrescoCamelContext) started in 1s50ms (build:158ms init:627ms start:265ms)
2023-08-23 07:16:46,649 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [eventAsyncDequeueThreadPool1] Startup of 'Messaging' subsystem, ID: [Messaging, default] complete
2023-08-23 07:16:46,871 WARN  [org.apache.activemq.transport.failover.FailoverTransport] [ActiveMQ Task-1] Failed to connect to [nio://localhost:61616] after: 1 attempt(s) with Connection refused, continuing to retry.&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Aug 2023 10:28:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-completely-disable-messaging-subsystem/m-p/127122#M34560</guid>
      <dc:creator>s3rg3d</dc:creator>
      <dc:date>2023-08-23T10:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to completely disable Messaging subsystem ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-completely-disable-messaging-subsystem/m-p/127123#M34561</link>
      <description>&lt;P&gt;If you are using Alfresco 7.4, you can add following setting in Alfresco repository:&lt;/P&gt;
&lt;PRE&gt;repo.event2.enabled=false&lt;/PRE&gt;
&lt;P&gt;Alternatively you can override default Alfresco Repository Spring Beans to avoid running that task:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/2ae93ee6294e55a37facc131f0acd7342e3b8d22/repository/src/main/resources/alfresco/events2-context.xml#L66" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/blob/2ae93ee6294e55a37facc131f0acd7342e3b8d22/repository/src/main/resources/alfresco/events2-context.xml#L66&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 11:21:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-completely-disable-messaging-subsystem/m-p/127123#M34561</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2023-08-23T11:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to completely disable Messaging subsystem ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-completely-disable-messaging-subsystem/m-p/127124#M34562</link>
      <description>&lt;P&gt;Oh thanks Angel, actually I had already set &lt;EM&gt;repo.event2.enabled=false&lt;/EM&gt; but I'm on ACS 7.3.1 and I didn't see that was only possible since 7.4.&lt;/P&gt;&lt;P&gt;Too bad for me,&amp;nbsp;I guess I have to override beans in Spring configuration for now. About that, do you have some guidance about how to do that ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 14:19:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-completely-disable-messaging-subsystem/m-p/127124#M34562</guid>
      <dc:creator>s3rg3d</dc:creator>
      <dc:date>2023-08-23T14:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to completely disable Messaging subsystem ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-completely-disable-messaging-subsystem/m-p/127125#M34563</link>
      <description>&lt;P&gt;This is the change that provides the feature:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/pull/1703/files" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/pull/1703/files&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can try to create your customized &lt;FONT face="andale mono,times"&gt;org.alfresco.repo.event2.CustomEventGenerator&lt;/FONT&gt; and then to override this Spring Bean:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/a4064fe537a0e7bee5286c825637ae9915178b1e/repository/src/main/resources/alfresco/events2-context.xml#L62" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/blob/a4064fe537a0e7bee5286c825637ae9915178b1e/repository/src/main/resources/alfresco/events2-context.xml#L62&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;with something like&lt;/P&gt;
&lt;PRE&gt;&amp;lt;bean id="eventGeneratorV2" class="org.alfresco.repo.event2.CustomEventGenerator" parent="baseEventGeneratorV2"/&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Aug 2023 15:11:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-completely-disable-messaging-subsystem/m-p/127125#M34563</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2023-08-23T15:11:45Z</dc:date>
    </item>
  </channel>
</rss>

