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:32:34 UTC
[jira] Resolved: (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 resolved SM-331.
--------------------------------
Resolution: Fixed
Fix Version/s: 3.2
3.1.1
Assignee: Guillaume Nodet
Author: gnodet
Date: Mon Mar 12 08:25:49 2007
New Revision: 517251
URL: http://svn.apache.org/viewvc?view=rev&rev=517251
Log:
SM-331: JabberComponentSupport attempts to create a jabber account every time on start
Thanks Patch provided by Christian, thx !
Modified:
incubator/servicemix/trunk/common/servicemix-components/src/main/java/org/apache/servicemix/components/jabber/JabberComponentSupport.java
Author: gnodet
Date: Mon Mar 12 08:31:47 2007
New Revision: 517254
URL: http://svn.apache.org/viewvc?view=rev&rev=517254
Log:
SM-311: JabberComponentSupport attempts to create a jabber account every time on start
Modified:
incubator/servicemix/branches/servicemix-3.1/common/servicemix-components/src/main/java/org/apache/servicemix/components/jabber/JabberComponentSupport.java
> 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.