Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 20209 invoked from network); 17 Nov 2010 16:53:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 16:53:15 -0000 Received: (qmail 63571 invoked by uid 500); 17 Nov 2010 16:53:47 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 63525 invoked by uid 500); 17 Nov 2010 16:53:46 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 63515 invoked by uid 99); 17 Nov 2010 16:53:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 16:53:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 16:53:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAHGrOwl002949 for ; Wed, 17 Nov 2010 16:53:25 GMT Message-ID: <33155651.7141290012804643.JavaMail.jira@thor> Date: Wed, 17 Nov 2010 11:53:24 -0500 (EST) From: "James Green (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQ-3042) Default broker name to be machine's hostname MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c Default broker name to be machine's hostname -------------------------------------------- Key: AMQ-3042 URL: https://issues.apache.org/activemq/browse/AMQ-3042 Project: ActiveMQ Issue Type: Improvement Components: Broker Affects Versions: 5.4.1 Reporter: James Green Priority: Trivial In many scenarios, including ours, there is one AMQ broker per host. They connect to each other but must have unique brokerName values. It would therefore make sense to send into AMQ at launch the current hostname and refer to this for the value instead of the literal value "localhost". This would lend itself to invoking lots of new broker hosts within a virtualised environment with reduced configuration work. The init.d script could have two lines added: ACTIVEMQ_HOSTNAME=`hostname` ACTIVEMQ_OPTS="-Denv.hostname=$ACTIVEMQ_HOSTNAME" The activemq.xml file that ships default could then read: Unsure about other platforms but that works for linux. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.