Disable default downstream listener

User a4aa805ca5

30-06-2014 13:07:13

We have a custom downstream listener, so I would like to disable the default downstream listener (which writes to a database) but still keep the JMS messages firing.  Is there a way to do this?

ChemAxon 4a17fb4c5c

09-07-2014 08:52:11

The default listener cannot be switched off right now by a simple
setting but you could do a workaround such as have it point to a
different downstream schema than the one you use.

Additionally you could disable the default consumer from the Spring
configuration applicationContext-regsys-jms.xml by removing
the following bean definitions:



    <bean id="regDSJmsListener"
class="com.chemaxon.registry.jms.JMSMessageListener"></bean>



    <bean id="regDSJmsListenerContainer"
class="org.springframework.jms.listener.DefaultMessageListenerContainer">

        <property name="connectionFactory"
ref="regDSConnectionFactory" />

        <property name="destination"
ref="regDSDefaultDestination" />

        <property name="messageListener" ref="regDSJmsListener"
/>

    </bean>