You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2007/03/12 16:18:34 UTC

[jira] Updated: (SM-331) JabberComponentSupport attempts to create a jabber account every time on start

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

Guillaume Nodet updated SM-331:
-------------------------------

    Patch Info: [Patch Available]

> JabberComponentSupport attempts to create a jabber account every time on start
> ------------------------------------------------------------------------------
>
>                 Key: SM-331
>                 URL: https://issues.apache.org/activemq/browse/SM-331
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-components
>    Affects Versions: 2.0.2
>         Environment: any
>            Reporter: Jan Maes
>            Priority: Minor
>         Attachments: jabber_login_without_account_creation.diff
>
>
> JabberComponentSupport.start() always tries to create a new account on startup.
>             if (login && !connection.isAuthenticated()) {
>                 if (user != null) {
>                     AccountManager accountManager = new AccountManager(connection);
>                     accountManager.createAccount(user, password);
>                     log.info("Logging in to Jabber as user: " + user + " on connection: " + connection);
>                     connection.login(user, password, resource);
>                 }
>                 else {
>                     log.info("Logging in anonymously to Jabber on connection: " + connection);
>                     connection.loginAnonymously();
>                 }
> At second startup, this throws an exception. Better try to login first, and try to create account if that fails.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.