Hi,

yes it is possible, did you declare your beans to be services?
You'll need to install the spring-dm features as well.

Regards, Achim


2013/6/11 ramesh.rajendran <[email protected]>

> I have a spring context which exports the osgi service defined under
> /META-INF/spring/spring-dao.xml like thisThe question is: I want to use the
> above defined service in my blueprint, which is defined under location
> /OSGI-INF/blueprint/blueprint.xml.After having this configuration i get
> following errorjava.lang.Exception: Can not resolve feature:Unsatisfied
>
> requirement(s):---------------------------service:(service=com.test.StockDao)Database
> Testat
>
> org.fusesource.fabric.agent.ObrResolver.resolve(ObrResolver.java:215)[67:org.fusesource.fabric.fabric-agent:7.2.0.redhat-024]at
>
> org.fusesource.fabric.agent.DeploymentAgent.updateDeployment(DeploymentAgent.java:566)[67:org.fusesource.fabric.fabric-agent:7.2.0.redhat-024]at
>
> org.fusesource.fabric.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:432)[67:org.fusesource.fabric.fabric-agent:7.2.0.redhat-024]at
>
> org.fusesource.fabric.agent.DeploymentAgent$1.run(DeploymentAgent.java:242)[67:org.fusesource.fabric.fabric-agent:7.2.0.redhat-024]at
>
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_43]at
>
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_43]at
> java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_43]at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[:1.6.0_43]at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[:1.6.0_43]at
> java.lang.Thread.run(Thread.java:662)[:1.6.0_43]<c/code>Currently, osgi
> service exported in spring beans could be referenced only by spring beans.
> On the other side, service exported by blueprint could be referenced only
> by
> another blueprint.Correct me if am getting it wrong? If this is possible
> how
> do I do it.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Sharing-spring-services-with-blueprint-tp5734115.html
> Sent from the Camel - Users mailing list archive at Nabble.com.




-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to