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 404A16260 for ; Wed, 22 Jun 2011 15:36:49 +0000 (UTC) Received: (qmail 86340 invoked by uid 500); 22 Jun 2011 15:36:48 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 86309 invoked by uid 500); 22 Jun 2011 15:36:48 -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 Received: (qmail 86300 invoked by uid 99); 22 Jun 2011 15:36:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 15:36:48 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=FSL_RU_URL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [62.75.158.78] (HELO mail.liquid-reality.de) (62.75.158.78) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 15:36:42 +0000 Received: from [10.0.0.104] (HSI-KBW-46-223-138-180.hsi.kabel-badenwuerttemberg.de [46.223.138.180]) by mail.liquid-reality.de (Postfix) with ESMTP id 23AA6B38014 for ; Wed, 22 Jun 2011 15:36:21 +0000 (UTC) Message-ID: <4E020BF0.4000206@die-schneider.net> Date: Wed, 22 Jun 2011 17:36:16 +0200 From: Christian Schneider User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: Is it possible to export camel endpoint as OSGi service? References: <06139A918ACCA041BF46A0F36940C7FAA970E2@exch-mbx2.msk.trd.ru> <4E020876.4070200@nanthrax.net> <06139A918ACCA041BF46A0F36940C7FAA97131@exch-mbx2.msk.trd.ru> In-Reply-To: <06139A918ACCA041BF46A0F36940C7FAA97131@exch-mbx2.msk.trd.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org To not know camel at all would mean that you have to invent your own abstractions and bridge between them and camel by hand. If camel would offer such abstractions you would always be depending on camel in some way. One solution might be to use the NMR support in camel. See: http://camel.apache.org/nmr.html So you would only depend on some JBI interfaces. Christian Am 22.06.2011 17:28, schrieb Zhemzhitsky Sergey: > Hi JB, > > The idea is to allow clients not to know about camel at all. > > > Best Regards, > Sergey Zhemzhitsky > Information Technology Division > Troika Dialog, 4, Romanov lane, Moscow 125009, Russia > Phone. +7 495 2580500 ext. 1246 > > > -----Original Message----- > From: Jean-Baptiste Onofr� [mailto:jb@nanthrax.net] > Sent: Wednesday, June 22, 2011 7:21 PM > To: users@camel.apache.org > Subject: Re: Is it possible to export camel endpoint as OSGi service? > > Hi Sergey, > > Camel already exposes context as an OSGi service. So it means that you can get the endpoint, routes, component starting from the CamelContext. > > For instance, you can get the CamelContext from a bundle like this: > > ServiceReference[] references = > bundleContext.getServiceReferences(CamelContext.class.getName(), null); > > Regards > JB > > On 06/22/2011 05:11 PM, Zhemzhitsky Sergey wrote: >> Hi there, >> >> I'm using the latest version of camel and I'm wondering whether it is possible to export a camel endpoint as OSGi service, so any non-camel-aware code can transparently use camel functionality in OSGi environment. And in that case from the OSGi service consumer's point of view, camel context is a simple OSGi service. >> >> Best Regards, >> Sergey Zhemzhitsky >> >> >> _______________________________________________________ >> >> The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. >> If you need assistance please contact our Contact Center (+7495) 258 >> 0500 or go to www.troika.ru/eng/Contacts/system.wbp >> >> > _______________________________________________________ > > The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. > If you need assistance please contact our Contact Center (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp > > > -- Christian Schneider http://www.liquid-reality.de Open Source Architect http://www.talend.com