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

[jira] [Resolved] (CAMEL-1698) Break out the smack listeners implemented by XmppConsumer out to separate classes, and add a ConnectionListener.

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

Claus Ibsen resolved CAMEL-1698.
--------------------------------

    Resolution: Fixed
      Assignee: Claus Ibsen

Lets close old ticket that are not in demand.
                
> Break out the smack listeners implemented by XmppConsumer out to separate classes, and add a ConnectionListener.
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1698
>                 URL: https://issues.apache.org/jira/browse/CAMEL-1698
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-xmpp
>    Affects Versions: 2.0-M1
>            Reporter: Edward Campbell
>            Assignee: Claus Ibsen
>             Fix For: Future
>
>
> According to the smack documentation if you register the same listener multiple times, only the most recent filter is used.
> Since the XmppConsumer is being used for all listeners in this case only the last add<Message|Packet>Listener call is honored.
> It would be wiser to have the listeners as separate classes, then the handling of each packet/message type can be addressed separately.
> A ConnectionListener can be added as well to handle connections that go down and can be retried later.
> Proposed listeners:
> ConnectionListener (to listen to and respond to connection and disconnection events)
> MessageListener (to listen to and process messages)
> RosterListener (to listen to and process roster events)
> PresenceListeners (should be one for most types of listener defined in org.jivesoftware.smack.packet)
> Each listener type should be able to pass messages up through the camel exchange. All except the MessageListener should be disabled by default, but enabled via an option in the uri passed to camel. MessageListener should always pass the message up through the camel exchange.

--
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