Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2168

Expose configuration options of EmbeddedActiveMQ

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • master
    • None
    • Queue

    Description

      @rickholtnh asked us to be able to turn on JMX for the embedded ActiveMQ server.

      We can add an activeMQ.properties file holding some additional configuration options for ActiveMQ.

      We need to take care of James starting without problems with both Guice and Spring when no configuration file is provided.

      For doing this:

      • Define a class *EmbeddedActiveMQConfiguration*
      • Pass it as a parameter of *EmbeddedActiveMQ*
      • In *ActiveMQQueueModule* read it from the filesystem
      • You need to add a constructor argument in /james-project/server/queue/queue-activemq/src/main/resources/META-INF/spring/activemq-queue-context.xml for the configuration property. Spring allow to directly read properties (see org.springframework.beans.factory.config.PropertyPlaceholderConfigure). Another way would be to use MethodInvokingFactoryBean...

      In case of problems, reach us on the *Gitter* chat.

      Attachments

        Activity

          People

            Unassigned Unassigned
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: