<!--

    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.

-->

<service>
   <id>artemis-${artemis.instance.name}-${host}</id>
   <name>ActiveMQ Artemis: ${artemis.instance.name} @ ${host}</name>
   <description>Apache ActiveMQ Artemis is a reliable messaging broker</description>

   <env name="ARTEMIS_HOME" value="${artemis.home}"/>
   <env name="ARTEMIS_INSTANCE" value="${artemis.instance}"/>

   <logpath>${artemis.instance}\log</logpath>
   <logmode>roll</logmode>

   <executable>%JAVA_HOME%\bin\java.exe</executable>
   <argument>-Xbootclasspath/a:%ARTEMIS_HOME%\lib\${logmanager}</argument>
   <argument>-XX:+UseParallelGC</argument>
   <argument>-XX:+AggressiveOpts</argument>
   <argument>-XX:+UseFastAccessorMethods</argument>
   <argument>-Xms512M</argument>
   <argument>-Xmx1024M</argument>

   <!-- Cluster Properties: Used to pass arguments to ActiveMQ Artemis which can be referenced in broker.xml
   <argument>-Dartemis.remoting.default.port=61617</argument>
   <argument>-Dartemis.remoting.amqp.port=5673</argument>
   <argument>-Dartemis.remoting.stomp.port=61614</argument>
   <argument>-Dartemis.remoting.hornetq.port=5446</argument>
   -->

   <argument>-classpath</argument>
   <argument>%ARTEMIS_HOME%\lib\artemis-boot.jar</argument>
   <argument>-Dartemis.home=%ARTEMIS_HOME%</argument>
   <argument>-Dartemis.instance=%ARTEMIS_INSTANCE%</argument>
   <argument>-Djava.util.logging.manager=org.jboss.logmanager.LogManager</argument>
   <argument>-Dlogging.configuration=file:%ARTEMIS_INSTANCE%\etc\logging.properties</argument>
   <argument>-Djava.security.auth.login.config=%ARTEMIS_INSTANCE%\etc\login.config</argument>


   <!-- Debug args: Uncomment to enable debug
   <argument>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005</argument>
   -->

   <argument>org.apache.activemq.artemis.boot.Artemis</argument>

   <argument>run</argument>

</service>