Spring-DM is out of support for years. You can use blueprint to do the same 
thing as you do in spring-DM. So I suggest you to publish the activemq 
component service by using blueprint instead of Spring.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On June 10, 2014 at 2:23:54 AM, Happy User (happyuser828...@gmail.com) wrote:
> Tried to expose activemq as OSGI service in activemq.xml and tried to
> reference it in blueprint. But I am getting the waiting for namespace
> issue. Have the spring-osgi.* jars in maven dependencies already.
>  
> blueprint.xml:
>  
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:camel="http://camel.apache.org/schema/blueprint";
> xmlns:cxf="http://camel.apache.org/schema/blueprint/cxf";
> xmlns:osgi="http://www.springframework.org/schema/osgi";
> xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0
> "
> 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://camel.apache.org/schema/blueprint/cxf
> http://camel.apache.org/schema/blueprint/cxf/camel-cxf.xsd
> http://www.springframework.org/schema/osgi
> http://www.springframework.org/schema/osgi/spring-osgi.xsd
> http://www.springframework.org/schema/osgi
> http://www.springframework.org/schema/osgi/spring-osgi.xsd";>
>  
> > filter="(component=activemq)"/>
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> activemq.xml:
>  
> > class="org.apache.activemq.camel.component.ActiveMQComponent" >
>  
>  
> > value="vm://localhost?create=false&waitForStart=10000" />
>  
>  
>  
>  
>  
>  
>  
> pom.xml:
>  
>  
> org.apache.felix
> maven-bundle-plugin
> 2.3.4
> true
>  
> META-INF
>  
>  
> ${pom.artifactId}
>  
> org.apache.activemq.camel.component,
> org.apache.camel,
> *
>  
> src/main/resources
>  
> *;publish-context:=false;create-asynchronously:=true  
>  
>  
>  
>  
>  
> -Thanks
>  

Reply via email to