You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henryk Konsek (JIRA)" <ji...@apache.org> on 2012/06/18 10:29:43 UTC

[jira] [Updated] (CAMEL-5341) Guava event bus integration

     [ https://issues.apache.org/jira/browse/CAMEL-5341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henryk Konsek updated CAMEL-5341:
---------------------------------

    Attachment: camel-guava-eventbus.patch

I've created Guava Event Bus component.

It can be used both on the consumer and producer side. The idea behind it is to allow client applications using Google Guava [1] and Event Collaboration [2] to transparently integrate their code with the Camel infrastructure.

The nice thing here is that client application can stay unaware of using Camel as the transport and routing layer. Client depends only on Guava libraries.

__________________
Consumer use case:

from("guava-eventBus:busName?eventClass=com.example.MyNotification").to("seda:eventQueue");

Event bus consumer collects events incoming to the message bus and forward them to the Camel infrastructure.
__________________

Producer use case:

from("direct:fireEvent").to("guava-eventBus:busName");

Producer is used send body of Camel messages to the Guava event bus (so that client application listeners can consume them).
_______________________

Could somebody take a look at it and hopefully submit it to the trunk? :)

[1] http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/eventbus/package-summary.html
[2] http://martinfowler.com/eaaDev/EventCollaboration.html
                
> Guava event bus integration
> ---------------------------
>
>                 Key: CAMEL-5341
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5341
>             Project: Camel
>          Issue Type: New Feature
>            Reporter: Henryk Konsek
>            Assignee: Henryk Konsek
>            Priority: Trivial
>             Fix For: Future
>
>         Attachments: camel-guava-eventbus.patch
>
>
> Google Guava introduced event bus [1] utility implementing Event Collaboration pattern [2]. I will be nice to provide Guava Event Bus integration feature similar to the Akka Camel integration (i.e. to transparently transport messages using Camel-based routing).
> I'll think about possible implementation and provide it later on. Any thoughts on this topic are welcome :) . 
> [1] http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/eventbus/package-summary.html
> [2] http://martinfowler.com/eaaDev/EventCollaboration.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira