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:34:34 UTC
[jira] Commented: (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:comment-tabpanel#action_38781 ]
Guillaume Nodet commented on SM-331:
------------------------------------
I guess we need the same kind of fix for the new std JBI component servicemix-xmpp ...
> 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
> Assigned To: Guillaume Nodet
> Priority: Minor
> Fix For: 3.1.1, 3.2
>
> 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.