Community
Participate
Working Groups
Accotring to [1], the following XML declaration should be valid: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bp="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:p="http://www.springframework.org/schema/p" xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:task="http://www.springframework.org/schema/task" 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://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <util:constant id="thread-priority" static-field="java.lang.Thread.MIN_PRIORITY"/> <bean id="exampleThread" class="java.lang.Thread" p:priority-ref="thread-priority"> <constructor-arg> <bp:bean class="org.example.SomeRunnable"/> </constructor-arg> </bean> <task:executor id="rangeWithBoundedQueue" size="7-42" queue-capacity="#{ T(java.lang.Math).random() * 30.0 }"/> <bp:reference-list id="cloneableServices" interface="java.lang.Cloneable" /> <beans> However, it is not: The blueprint schema enforces a <blueprint> root element.
[1] http://www.eclipse.org/gemini/blueprint/documentation/reference/1.0.0.RELEASE/html/blueprint.html#blueprint:differences:xml
Created attachment 224097 [details] Example of mixed namespaces from META-INF/spring
I did some experiments which confirmed your finding about the default namespace needing to be blueprint when mixing namespaces. However, this only seemed to work when the blueprint file was in META-INF/spring. See the example attached.
Fixed documentation in commit b998e148ba4581429852c88380d277c72e6a39d9.