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.