james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tellier Benoit (JIRA)" <server-...@james.apache.org>
Subject [jira] [Updated] (JAMES-2168) Expose configuration options of EmbeddedActiveMQ
Date Mon, 02 Oct 2017 06:39:00 GMT

     [ https://issues.apache.org/jira/browse/JAMES-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tellier Benoit updated JAMES-2168:
----------------------------------
    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.

  was:
@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.


> Expose configuration options of EmbeddedActiveMQ
> ------------------------------------------------
>
>                 Key: JAMES-2168
>                 URL: https://issues.apache.org/jira/browse/JAMES-2168
>             Project: James Server
>          Issue Type: Improvement
>          Components: Queue
>    Affects Versions: master
>            Reporter: Tellier Benoit
>              Labels: feature, newbie
>
> @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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message