Aries Blueprint can not be used to process spring files. You need to use Spring-DM or Eclipse Gemini Blueprint in order to do that. However, the standardized blueprint syntax is very similar, so most of the plain spring syntax will work with a few minor changes, but custom namespaces aren't compatible, and this is still not spring.
On Wed, Jan 5, 2011 at 00:00, David Erickson <halcyon1...@gmail.com> wrote: > On Tue, Dec 28, 2010 at 2:09 AM, Guillaume Nodet <gno...@gmail.com> wrote: >> Spring-DM and Aries Blueprint (and other technologies such as SCR or >> iPojo) are fully interopable through the use of the OSGi registry. > > Thanks for the replies. Just so I feel fully clear on the subject, > lets assume I have the following xml file: > > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:util="http://www.springframework.org/schema/util" > xmlns:bp="http://www.osgi.org/xmlns/blueprint/v1.0.0" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-3.0.xsd > http://www.springframework.org/schema/util > http://www.springframework.org/schema/util/spring-util-3.0.xsd > http://www.osgi.org/xmlns/blueprint/v1.0.0 > http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"> > > <bean > class="org.springframework.beans.factory.config.PropertyOverrideConfigurer"> > <property name="ignoreResourceNotFound" value="true" /> > <property name="locations" value="file:./my.properties"/> > </bean> > > <bean id="myBean" class="foo.MyBean" > init-method="startUp" destroy-method="shutDown"> > <property name="ordering" ref="ordering"/> > <property name="dependentService" ref="dependentService"/> > </bean> > > <util:map id="ordering"> > <entry key="BAR" value="1,2,3,4,5"/> > </util:map> > > <bp:service id="myBean" ref="myBean" interface="foo.IMyBean"> > </bp:service> > > <bp:reference id="dependentService" availability="mandatory" > interface="foo.IService"> > </bp:reference> > </beans> > > Can I take Spring + Aries and have the above just work? What I am > wondering is because Spring itself is not OSGi aware, who handles > finding the code that handles the declared namespaces, and ends up > creating the Spring container, and handling the interaction between it > and the service registry, is this Aries? Is there a standard that has > been developed for dealing with IoC containers and these namespaces? > I guess I am wondering if Aries has to have Spring specific code in > here to do this, or if its been standardized in a manner so that > everything 'just works' now. > > Thanks, > David > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com