Return-Path: X-Original-To: apmail-aries-dev-archive@www.apache.org Delivered-To: apmail-aries-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 8B1DC182F7 for ; Mon, 23 Nov 2015 08:56:38 +0000 (UTC) Received: (qmail 68857 invoked by uid 500); 23 Nov 2015 08:56:38 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 68820 invoked by uid 500); 23 Nov 2015 08:56:38 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 68615 invoked by uid 99); 23 Nov 2015 08:56:38 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2015 08:56:38 +0000 Received: from mail-io0-f174.google.com (mail-io0-f174.google.com [209.85.223.174]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 1EB191A0338 for ; Mon, 23 Nov 2015 08:56:38 +0000 (UTC) Received: by ioir85 with SMTP id r85so180484525ioi.1 for ; Mon, 23 Nov 2015 00:56:37 -0800 (PST) X-Received: by 10.107.137.19 with SMTP id l19mr21821772iod.138.1448268997532; Mon, 23 Nov 2015 00:56:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.7.67 with HTTP; Mon, 23 Nov 2015 00:56:18 -0800 (PST) In-Reply-To: References: From: Guillaume Nodet Date: Mon, 23 Nov 2015 09:56:18 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [DISCUSS] Spring support in Blueprint To: dev@aries.apache.org, dev Content-Type: multipart/alternative; boundary=001a113ec80c2326bc0525316705 --001a113ec80c2326bc0525316705 Content-Type: text/plain; charset=UTF-8 I've added a simple test case demonstrating the use of blueprint-spring: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-spring/src/test/resources/test1.xml?revision=1715737&view=markup Guillaume 2015-11-20 17:56 GMT+01:00 Guillaume Nodet : > I've just committed a new module (and the additional required changes and > existing modules) to support Spring namespaces (default and custom) in > blueprint. > See the source code at > > http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-spring/src/main/java/org/apache/aries/blueprint/spring/ > > It's limited and not much tested for now, but it can handle things like > the following: > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:bp="http://www.osgi.org/xmlns/blueprint/v1.0.0" > xmlns:bean="http://camel.apache.org/schema/blueprint" > xmlns:util="http://www.springframework.org/schema/util" > xsi:schemaLocation=" > http://www.osgi.org/xmlns/blueprint/v1.0.0 > http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd > http://camel.apache.org/schema/blueprint > http://camel.apache.org/schema/blueprint/camel-blueprint.xsd > http://www.springframework.org/schema/tx > http://www.springframework.org/schema/tx/spring-tx-4.2.xsd > http://www.springframework.org/schema/util > http://www.springframework.org/schema/util/spring-util-4.2.xsd > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-4.2.xsd"> > > > > > > > > class="org.apache.activemq.artemis.api.jms.ActiveMQJMSClient" > factory-method="createConnectionFactory" xmlns=" > http://www.springframework.org/schema/beans"> > > > > > > > foo > > > > > > > > > > > So you can use the default spring namespace or custom spring namespaces > and cross-reference beans between blueprint and spring. > > I haven't tried auto-wiring or any advanced usage such as AOP. > > I'll try to commit a few initial integration tests beginning of next week. > Please have a look and provide feedback and additional use cases (as tests > ?). > > Cheers, > Guillaume Nodet > > > --001a113ec80c2326bc0525316705--