Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 97635 invoked from network); 19 Oct 2006 23:29:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Oct 2006 23:29:13 -0000 Received: (qmail 51116 invoked by uid 500); 19 Oct 2006 23:29:13 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 51098 invoked by uid 500); 19 Oct 2006 23:29:12 -0000 Mailing-List: contact activemq-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-dev@geronimo.apache.org Received: (qmail 51089 invoked by uid 99); 19 Oct 2006 23:29:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2006 16:29:12 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2006 16:29:12 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EADCA714315 for ; Thu, 19 Oct 2006 16:28:16 -0700 (PDT) Message-ID: <23046127.1161300496959.JavaMail.jira@brutus> Date: Thu, 19 Oct 2006 16:28:16 -0700 (PDT) From: "Hiram Chirino (JIRA)" To: activemq-dev@geronimo.apache.org Subject: [jira] Commented: (AMQ-997) Use the ACTIVEMQ_BASE environment variable to support running multiple broker instances from he same activemq install In-Reply-To: <21197037.1161300136800.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ https://issues.apache.org/activemq/browse/AMQ-997?page=comments#action_37249 ] Hiram Chirino commented on AMQ-997: ----------------------------------- Folks sometimes need to add jar files to the ActiveMQ classpath to add a database driver for example. it is usually added the the ${ACTIVEMQ_HOME}/lib directory, but to support cases where admins do not want users modifying the ActiveMQ install directory. We should also add any jars in the ${ACTIVEMQ_BASE}/lib and ${ACTIVEMQ_BASE}/lib/optional directories to the ActiveMQ classpath. > Use the ACTIVEMQ_BASE environment variable to support running multiple broker instances from he same activemq install > --------------------------------------------------------------------------------------------------------------------- > > Key: AMQ-997 > URL: https://issues.apache.org/activemq/browse/AMQ-997 > Project: ActiveMQ > Issue Type: New Feature > Reporter: Hiram Chirino > Assigned To: Hiram Chirino > Fix For: 4.1 > > > The activemq startup shell scripts are allready using / find the ACTIVEMQ_HOME which is where AcitiveMQ has been installed. Currently, you can only run one instance of the broker per ActiveMQ installation directory. We should support running multiple broker instances using that same ACTIVEMQ_HOME. All the per broker instance variable data should be relative to a new ACTIVEMQ_BASE enviroment variable. > By default the ACTIVEMQ_BASE == ACTIVEMQ_HOME so that sarting up the default activemq instance continues to behave as it allways has. > Createing a new per instance directory, as admin should only have to do: > {code} > export ACTIVEMQ_BASE=/path/to/new/directory > mkdir -p ${ACTIVEMQ_BASE} > cp -R ${ACTIVEMQ_HOME}/conf ${ACTIVEMQ_BASE} > {code} > customize the ${ACTIVEMQ_BASE}/conf/activemq.xml file > And to run the new instance: > {code} > export ACTIVEMQ_BASE=/path/to/new/directory > ${ACTIVEMQ_HOME}/bin/activemq > {code} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira