Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0926A10CD2 for ; Wed, 12 Jun 2013 10:56:39 +0000 (UTC) Received: (qmail 93503 invoked by uid 500); 12 Jun 2013 10:56:38 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 93471 invoked by uid 500); 12 Jun 2013 10:56:38 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 43380 invoked by uid 99); 11 Jun 2013 21:34:59 -0000 X-ASF-Spam-Status: No, hits=4.4 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,HTML_NONELEMENT_30_40,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: encountered temporary error during SPF processing of domain of rameshchinnu61@gmail.com) Date: Tue, 11 Jun 2013 14:34:12 -0700 (PDT) From: "ramesh.rajendran" To: users@camel.apache.org Message-ID: <1370986452191-5734115.post@n5.nabble.com> Subject: Sharing spring services with blueprint MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42986_17453608.1370986452201" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_42986_17453608.1370986452201 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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]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. ------=_Part_42986_17453608.1370986452201--