Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Work In-Progress

If a given installation does not take advantage of the event message messages which Fedora emits by default, it is possible to safely turn off the feature without any adverse side-effects.

The messaging configuration is defined in the jms.xml file. The loading of this jms.xml file is defined in the master.xml.

One way to disable Fedora messaging is to provide a system-property to the JVM that has the master.xml file load an empty file instead of the default jms.xml.

Configuration

Add JVM system-property referencing an empty configuration file in place of the default jms.xml:

Code Block
JAVA_OPTS="${JAVA_OPTS} -Dfcrepo.spring.jms.configuration=file:/path/to/example-empty.xml"

...

languagexml
titleExample empty config file

...

Spring configuration. To turn off all messaging features, edit your Spring configuration and comment out or remove the following bean definitions:

  • JMS topic (class: org.fcrepo.jms.JMSTopicPublisher)
  • JMS queue (class: org.fcrepo.jms.JMSQueuePublisher)
  • ActiveMQ connection (id: connectionFactory, class: org.apache.activemq.ActiveMQConnectionFactory)
  • JMS broker (name: jmsBroker, class: org.apache.activemq.xbean.BrokerFactoryBean)
  • JMS message factory (class: org.fcrepo.jms.DefaultMessageFactory)