Repository: activemq-artemis Updated Branches: refs/heads/master cfa39ab08 -> fd38dddd0
ARTEMIS-93 Add default config to feature Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/3357ca55 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/3357ca55 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/3357ca55 Branch: refs/heads/master Commit: 3357ca5542f82912030d0620a9ff1301bf61a570 Parents: cfa39ab Author: Christian Schneider <[email protected]> Authored: Mon Nov 30 15:40:17 2015 +0100 Committer: Christian Schneider <[email protected]> Committed: Mon Nov 30 15:40:17 2015 +0100 ---------------------------------------------------------------------- artemis-features/pom.xml | 9 ++ artemis-features/src/main/resources/artemis.xml | 91 ++++++++++++++++++++ .../src/main/resources/features.xml | 7 +- .../resources/org.apache.activemq.artemis.cfg | 3 + pom.xml | 1 + 5 files changed, 108 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3357ca55/artemis-features/pom.xml ---------------------------------------------------------------------- diff --git a/artemis-features/pom.xml b/artemis-features/pom.xml index 3ff8de7..fefa7ba 100644 --- a/artemis-features/pom.xml +++ b/artemis-features/pom.xml @@ -68,6 +68,15 @@ <file>target/classes/features.xml</file> <type>xml</type> </artifact> + <artifact> + <file>target/classes/artemis.xml</file> + <classifier>artemis</classifier> + <type>xml</type> + </artifact> + <artifact> + <file>target/classes/org.apache.activemq.artemis.cfg</file> + <type>cfg</type> + </artifact> </artifacts> </configuration> </execution> http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3357ca55/artemis-features/src/main/resources/artemis.xml ---------------------------------------------------------------------- diff --git a/artemis-features/src/main/resources/artemis.xml b/artemis-features/src/main/resources/artemis.xml new file mode 100644 index 0000000..d99f43d --- /dev/null +++ b/artemis-features/src/main/resources/artemis.xml @@ -0,0 +1,91 @@ +<?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. +--> + +<configuration xmlns="urn:activemq" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="urn:activemq /schema/artemis-configuration.xsd"> + + <jms xmlns="urn:activemq:jms"> + <queue name="DLQ"/> + <queue name="ExpiryQueue"/> + </jms> + + <core xmlns="urn:activemq:core"> + + <!-- this could be ASYNCIO or NIO --> + <journal-type>NIO</journal-type> + <paging-directory>./data/paging</paging-directory> + <bindings-directory>./data/bindings</bindings-directory> + <journal-directory>./data/journal</journal-directory> + <large-messages-directory>./data/large-messages</large-messages-directory> + <journal-min-files>10</journal-min-files> + + <!-- + This value was determined through a calculation. + Your system could perform 0.63 writes per millisecond + on the current journal configuration. + That translates as a sync write every 1591999 nanoseconds + --> + <journal-buffer-timeout>1591999</journal-buffer-timeout> + + <acceptors> + <!-- Default ActiveMQ Artemis Acceptor. Multi-protocol adapter. Currently supports Core, OpenWire, Stomp and AMQP. --> + <!-- performance tests have shown that openWire performs best with these buffer sizes --> + <acceptor name="artemis">tcp://0.0.0.0:61616?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576</acceptor> + + <!-- AMQP Acceptor. Listens on default AMQP port for AMQP traffic.--> + <acceptor name="amqp">tcp://0.0.0.0:5672?protocols=AMQP</acceptor> + + <!-- STOMP Acceptor. --> + <acceptor name="stomp">tcp://0.0.0.0:61613?protocols=STOMP</acceptor> + + <!-- HornetQ Compatibility Acceptor. Enables ActiveMQ Artemis Core and STOMP for legacy HornetQ clients. --> + <acceptor name="hornetq">tcp://0.0.0.0:5445?protocols=HORNETQ,STOMP</acceptor> + + <!-- MQTT Acceptor --> + <acceptor name="mqtt">tcp://0.0.0.0:1883?protocols=MQTT</acceptor> + </acceptors> + + <security-settings> + <security-setting match="#"> + <permission type="createNonDurableQueue" roles="amq"/> + <permission type="deleteNonDurableQueue" roles="amq"/> + <permission type="createDurableQueue" roles="amq"/> + <permission type="deleteDurableQueue" roles="amq"/> + <permission type="consume" roles="amq"/> + <permission type="send" roles="amq"/> + <!-- we need this otherwise ./artemis data imp wouldn't work --> + <permission type="manage" roles="amq"/> + </security-setting> + </security-settings> + + <address-settings> + <!--default for catch all--> + <address-setting match="#"> + <dead-letter-address>jms.queue.DLQ</dead-letter-address> + <expiry-address>jms.queue.ExpiryQueue</expiry-address> + <redelivery-delay>0</redelivery-delay> + <max-size-bytes>10485760</max-size-bytes> + <message-counter-history-day-limit>10</message-counter-history-day-limit> + <address-full-policy>BLOCK</address-full-policy> + </address-setting> + </address-settings> + </core> +</configuration> http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3357ca55/artemis-features/src/main/resources/features.xml ---------------------------------------------------------------------- diff --git a/artemis-features/src/main/resources/features.xml b/artemis-features/src/main/resources/features.xml index c7cdd32..3458bda 100644 --- a/artemis-features/src/main/resources/features.xml +++ b/artemis-features/src/main/resources/features.xml @@ -1,3 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Licensed to the Apache Software Foundation (ASF) under one or more ~ contributor license agreements. See the NOTICE file distributed with @@ -14,7 +15,6 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> -<?xml version="1.0" encoding="UTF-8"?> <features name="artemis-${pom.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 http://karaf.apache.org/xmlns/features/v1.3.0"> @@ -31,6 +31,9 @@ <feature>transaction</feature> <feature>netty-core</feature> <feature>scr</feature> + <configfile finalname="etc/org.apache.activemq.artemis.cfg">mvn:org.apache.activemq/artemis-features/${pom.version}/cfg</configfile> + <configfile finalname="etc/artemis.xml">mvn:org.apache.activemq/artemis-features/${pom.version}/xml/artemis</configfile> + <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_2.0_spec/${geronimo.jms.2.spec.version}</bundle> <bundle>mvn:com.google.guava/guava/18.0</bundle> <bundle>mvn:io.netty/netty-codec-http/${netty.version}</bundle> @@ -38,8 +41,6 @@ <bundle>mvn:commons-collections/commons-collections/3.2.1</bundle> <bundle>mvn:org.jboss.logging/jboss-logging/3.1.4.GA</bundle> - <!-- <bundle>wrap:mvn:org.jboss.modules/jboss-modules/1.3.1.Final</bundle> --> - <!-- <bundle>mvn:org.jboss.logmanager/jboss-logmanager/1.5.3.Final</bundle>--> <bundle>mvn:org.jgroups/jgroups/3.6.0.Final</bundle> <bundle>mvn:org.apache.activemq/artemis-native/${pom.version}</bundle> http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3357ca55/artemis-features/src/main/resources/org.apache.activemq.artemis.cfg ---------------------------------------------------------------------- diff --git a/artemis-features/src/main/resources/org.apache.activemq.artemis.cfg b/artemis-features/src/main/resources/org.apache.activemq.artemis.cfg new file mode 100644 index 0000000..7714ddf --- /dev/null +++ b/artemis-features/src/main/resources/org.apache.activemq.artemis.cfg @@ -0,0 +1,3 @@ +config=file:etc/artemis.xml +name=local +domain=local http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3357ca55/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 30b1a7e..5b95c28 100644 --- a/pom.xml +++ b/pom.xml @@ -1053,6 +1053,7 @@ <exclude>**/.checkstyle</exclude> <exclude>**/.factorypath</exclude> <exclude>ratReport.txt</exclude> + <exclude>**/org.apache.activemq.artemis.cfg</exclude> <!-- activemq5 unit tests exclude --> <exclude>**/*.data</exclude> <exclude>**/*.bin</exclude>
