Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 832E36A91 for ; Fri, 3 Jun 2011 18:11:55 +0000 (UTC) Received: (qmail 83272 invoked by uid 500); 3 Jun 2011 18:11:55 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 83215 invoked by uid 500); 3 Jun 2011 18:11:55 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 83207 invoked by uid 99); 3 Jun 2011 18:11:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 18:11:55 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.59] (HELO smtp104.prem.mail.sp1.yahoo.com) (98.136.44.59) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 03 Jun 2011 18:11:48 +0000 Received: (qmail 67490 invoked from network); 3 Jun 2011 18:11:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; b=MrAV5FvwmBJ/WIVmyL8oW/DoEgWmSpJ5Py7emvl1gUSaxaiLbR+mrD354ZV2dj/hHA8XkBCsYmX41f/5xtR0HjyEcnF//DiHL2YEJfPmw6dOgootQgxGeJZOHp+wsneqEj4w9u1AB/RYxss8MiQqLotFZah68Lot+gkDXX2XtaU= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1307124688; bh=sm4h0/GmQsY9aaJrFEKVgEQ48FD5wemQSPZKwNEGsEw=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; b=VmoYT56TszwYowJPLZ2eJoCVuVfnzFefVmiv38mw6Cz4eRCM0a/0hH5OcrGpKf2KHmIK1Zguq4LZJOiSE8ES9MuaqNrMkc/MyqOgTR4sbeKnsvKRjF1H4MKPs/A/984Rzf1pwCRdaYWglqRKS0VmclJxssgSPHJ8lLIfEjYpcJA= Received: from [10.0.1.4] (david_jencks@76.76.148.215 with plain) by smtp104.prem.mail.sp1.yahoo.com with SMTP; 03 Jun 2011 11:11:28 -0700 PDT X-Yahoo-SMTP: .9oIUzyswBANsYgUm_5uPui0skTnzGJXJQ-- X-YMail-OSG: UT2kOTMVM1lBbZOEt.PO5ZmBb_qQ2ftkRQ2BDc1ugUIycYy cO0vxgn823WVxPiBEIuJf_SG4mP.jL4eXabFknHb5ros2J870YBVFjmHTrto uy4KKVviy9sn3VFkmqvJhqTPf9lIwN24_CnG_e1etU0J920UWK9IH1Wzm8KF TVL4o0qtn99r9fN61zjLmME.cAykU39AYcrshQSS.Kblx6ZDVuc4PBWIx4RC LeY1J4c7PTUdWrAM525.NSidJXj45.pfIP6KC3JX.HcibyKqoUHsR.hbDDL6 ORH_KbKTYuFcuts.r22OzaW.7KgHFC33k57Gt8.hhHULxvlGwRUv5LhaTT4U 6tgeQYHk021SKSpS_YOB7e2FRVjKCDCmea6gyrxyg3Igj2pnU2ZihjF.QH1S 7jrgT4hk_8r43kcaBWStmVkW5u5Cp85B0l64- X-Yahoo-Newman-Property: ymail-3 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: ActiveMQ config-substitution change G2.2 vs G3.0 From: David Jencks In-Reply-To: <4DE91B0D.9060806@cait.org> Date: Fri, 3 Jun 2011 11:11:27 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <7E63E3D8-0C84-486E-AB05-0DBD9C2F005F@yahoo.com> References: <4DE91B0D.9060806@cait.org> To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.1084) Hi Russell, thanks for looking into this in such detail :-) When I worked on the blueprint and xbean-blueprint conversion I couldn't = figure out how to do this. Since then I've started thinking that it = would make more sense to configure activemq with Declarative Services = rather than blueprint and configure the variable bits such as transports = with the feature that produces a service for every Config Admin = configuration (I get lost in the terminology, I think this is a managed = service factory). However I haven't had any time to look into this. not much help but that's where my thinking is at the moment. david jencks On Jun 3, 2011, at 10:34 AM, Russell E Glaue wrote: > ActiveMQ is not utilizing the config-substitutions in G3.0 > A patch was put in G2.2 do handle this, but the related code is = removed in G3.0. > ActiveMQ is changed in the process of integrating blueprint. See = GERONIMO-4475 > for the G2.2 patches from Ivan. >=20 > Since the GeronimoPropertyPlaceholderConfigurer in G2.2 was to make = ActiveMQ use > the config-substitution, and now is removed in G3.0, I do not see in = the code > where the config-substitution is accounted for. >=20 >=20 > In G2.2.2-SNAPSHOT > The GBean Class: > = ~/branches/2.2/plugins/activemq/geronimo-activemq/src/main/java/org/apache= /geronimo/activemq/GeronimoPropertyPlaceholderConfigurer.java > The GBean Configuration: > = ~/branches/2.2/plugins/activemq/activemq-broker/src/main/resources/activem= q.xml > - > > = class=3D"org.apache.geronimo.activemq.GeronimoPropertyPlaceholderConfigure= r"> > >=20 > = >=20 > = ${activemq.geronimo.home.url}/var/config/config-substitutions.prope= rties > > > 2 > > > - >=20 > In G3.0-SNAPSHOT > = ~/trunk/plugins/activemq/activemq-broker-blueprint/src/main/resources/OSGI= -INF/blueprint/activemq.xml > - > persistent-id=3D"blueprint-activemq-placeholder" = placeholder-prefix=3D"${" > placeholder-suffix=3D"}" ignore-missing-locations=3D"true"> > > > > > > > >=20 > = file:$(karaf.base)/etc/blueprint-activemq-placeholder.cfg > > - > As I mentioned in a previous thread on the user list, the > file:$(karaf.base)/etc/blueprint-activemq-placeholder.cfg is ignored. = I tried to > change the ActiveMQ values there in > GERONIMO_HOME/etc/blueprint-activemq-placeholder.cfg, but ActiveMQ did = not use > the new configuration I set. > (I am testing with G3.0-20110603-snapshot) >=20 > So the question is, what has to be done in G3.0-SNAPSHOT to make = ActiveMQ apply > settings from the config-substitutions file? >=20 > -RG