Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 83061 invoked from network); 5 Feb 2010 20:01:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Feb 2010 20:01:38 -0000 Received: (qmail 26532 invoked by uid 500); 5 Feb 2010 20:01:38 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 26456 invoked by uid 500); 5 Feb 2010 20:01:38 -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 26446 invoked by uid 99); 5 Feb 2010 20:01:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 20:01:38 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.136.44.56] (HELO smtp101.prem.mail.sp1.yahoo.com) (98.136.44.56) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 05 Feb 2010 20:01:30 +0000 Received: (qmail 84258 invoked from network); 5 Feb 2010 20:01:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:X-Mailer; b=g87DV4OGrJpInbBLsAFSmyxDNT3jeBRNl7DjPEgc/BnEf3oFZW5nnWtwknsN/FLZ5C5A8obaT4QYdYMoeRCuf2id3CYBEiC0n6V6fGR9dH5Rk5YECVZYsciKurLq6I6+56nDVQPNH6ZTf3eWIeL+LMYyZHOXBBF/YfVIAI4HAuE= ; Received: from 076-076-148-215.pdx.net (david_jencks@76.76.148.215 with plain) by smtp101.prem.mail.sp1.yahoo.com with SMTP; 05 Feb 2010 12:01:08 -0800 PST X-Yahoo-SMTP: .9oIUzyswBANsYgUm_5uPui0skTnzGJXJQ-- X-YMail-OSG: yiZ2828VM1l15r7mcAWRkVagdXAbm8PumJws_tnqlAVuGikTL2OBm_PHuFryjao3NaLD_XwqZ8rcJNaWg4qsLkgi9i_Ryd9k4cg97.vuJIq1U1PJCY403qxJISegwLaoMfcN5VTK4.gpvUgQNVHi_8M5j1IljXmgfBYfAHNywYstHMaTug8y9oTcjsy6NnRtezfC2ZqO_3wj3v_eO6QVGU6B4I_djpsHXhcp4ohuIHOQlWExAconbKB69vF8bi5OczwxlytTt7KNHYFzk2Piv5rEVSUnRFVIN7bw7ifeACg0MzZJyKT1FYQog99NaIOzYIwLnhWVfi8yW4LHs1mGYKAqetpTlFapPm9G20ZYTpTNNVRx4ekt.R0m X-Yahoo-Newman-Property: ymail-3 Message-Id: <6DA9B631-B717-46E5-A7C5-69E0006EBCE1@yahoo.com> From: David Jencks To: dev@activemq.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: amq 5.4 and osgi/blueprint Date: Fri, 5 Feb 2010 12:01:07 -0800 X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org For the geronimo 3 amq integration I've been working on getting amq 5.4 to run in de-springified osgi/buleprint using the xbean-blueprint NamespaceHandler I ported. I think I have at least a basic broker starting up. I'd like to make a few changes so this will work better: 1. Several classes use what I think are obsolete spring-isms namely implementing the spring interfaces InitializingBean, DisposableBean, and FactoryBean to tell spring stuff. IIUC a more up-to-date technique is to set this in the xml or, using xbean, using InitMethod and destroyMethod annotations. For the classes that are otherwise not spring-dependent I'd like to switch to the xbean annotations. The classes involved are: activemq-pool/src/main/java/org/apache/activemq/pool/ PooledConnectionFactoryBean.java activemq-camel/src/main/java/org/apache/activemq/camel/component/ CamelEndpointLoader.java activemq-core/src/main/java/org/apache/activemq/spring/ ActiveMQConnectionFactory.java activemq-core/src/main/java/org/apache/activemq/spring/ SpringSslContext.java activemq-core/src/main/java/org/apache/activemq/spring/ ActiveMQXAConnectionFactory.java (has other spring-isms) activemq-core/src/main/java/org/apache/activemq/broker/util/ LoggingBrokerPlugin.java activemq-core/src/main/java/org/apache/activemq/broker/util/ CommandAgent.java activemq-core/src/main/java/org/apache/activemq/filter/ DestinationMapEntry.java In addition, I need to expose activemq-core/src/main/java/org/apache/activemq/broker/ BrokerService.java to xbean. 2. To allow other bundles to interact with amq in osgi, it looks like org.apache.activemq.util.osgi.Activator needs to be run. One possibility would be to just install it as the bundle activator for activemq-core, this is what I've tried and appears to work OK. If this doesn't seem like a good idea to everyone I think I can just install it as a blueprint bean in a geronimo bundle. Comments? thanks david jencks