camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CAMEL-1698) Break out the smack listeners implemented by XmppConsumer out to separate classes, and add a ConnectionListener.
Date Wed, 29 Jun 2011 11:37:28 GMT

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

Claus Ibsen reassigned CAMEL-1698:
----------------------------------

    Assignee:     (was: Stan Lewis)

> 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
>             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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message