camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Whytock <>
Subject Re: Is it possible to export camel endpoint as OSGi service?
Date Wed, 22 Jun 2011 15:58:12 GMT
Maybe a service object that contains a BlockingQueue to read from
and/or a method to write with.  Creating it could be done by passing a
URL to a service, or set up URLs and keys in the configuration so that
client bundles track the service by key.

Alternately, rather than a BlockingQueue, a service that accepted
event listeners (read: Processes) which would be called for each
incoming message.

This can be used to make the application non-camel-aware, but it would
then still need to be camel-facade-aware.  Should the facade therefore
be part of Camel, or a sort of subproject?

My chatterbot project sort of tries to do this.  One writes "parsers"
for it that can respond to incoming messages without necessarily
knowing where the message is coming from.  It's probably more complex
than what we're talking about, though; it's made for a multiuser
environment, and uses internal user IDs.


On Wed, Jun 22, 2011 at 11:32 AM, Christian Schneider
<> wrote:
> Hi Sergey, Don,
> I just wanted to write a similar mail like Don. Reading his comments I think
> what we could improve is to offer a small messaging core for camel. For
> example containing Exchange, Message and ProducerTemplate. That would
> allow to make this "camel awareness really small". What do you think?
> Christian
> Am 22.06.2011 17:23, schrieb Donald Whytock:
>> Hi Sergey,
>> I tried doing this, encapsulating and exposing what functionality I
>> wanted, so that my client bundles wouldn't need to be camel-aware.
>> Yes, it can be done, as long as you're willing to create front-ends
>> for whatever you want to do.
>> I ended up thinking it was more trouble than it was worth, especially
>> when I needed to deal with the actual exchange.  At that point it just
>> seemed easier to let the bundles be camel-aware.
>> Don
>> On Wed, Jun 22, 2011 at 11:11 AM, 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
> --
> Christian Schneider
> Open Source Architect

View raw message