| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <document> |
| |
| <properties> |
| <title>Apache James Server 3 - ActiveMQ</title> |
| </properties> |
| |
| <head> |
| <script type="text/javascript" src="./js/dev-extend.js" /> |
| </head> |
| |
| <body> |
| |
| <section name="ActiveMQ"> |
| |
| <subsection name="Specification"> |
| |
| <p>By default with James spring, ActiveMQ is activated, an <strong>mailqueuefactory</strong> is searched in the class path, see <a href="https://github.com/linagora/james-project/blob/master/server/container/spring/src/main/resources/META-INF/org/apache/james/spring-server.xml">import</a> and <a href="https://github.com/linagora/james-project/blob/master/server/queue/queue-activemq/src/main/resources/META-INF/spring/activemq-queue-context.xml">initialisation</a>.</p> |
| |
| </subsection> |
| <subsection name="Initialisation"> |
| |
| You have to declare a bean identified as <strong>mailqueuefactory</strong> with the type |
| <strong>org.apache.james.queue.activemq.ActiveMQMailQueueFactory</strong> with the following indexed-arguments: |
| |
| <dl> |
| <dt><strong>org.apache.james.queue.activemq.EmbeddedActiveMQ</strong></dt> |
| <dt><strong>org.apache.james.queue.api.MailQueueItemDecoratorFactory</strong></dt> |
| <dt><strong>org.apache.james.metrics.api.MetricFactory</strong></dt> |
| </dl> |
| |
| </subsection> |
| |
| </section> |
| |
| </body> |
| |
| </document> |