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

Expose configuration options of EmbeddedActiveMQ

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: master
    • Fix Version/s: None
    • Component/s: Queue
    • Labels:

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            BTellier Tellier Benoit
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development