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