src/net/java/sip/communicator/plugin/jabberaccregwizz/JabberAccountCreationForm.java
/**
     * Connects to the chosen server and creates a new account with Smack.
     *
     * @param server the server domain
     * @param port TCP port to connect
     * @param username the account username
     * @param password the account password
     */
Connects to the chosen server and creates a new account with Smack.
@param server the server domain
@param port TCP port to connect
@param username the account username
@param password the account password
Connects to the chosen server and creates a new account with Smack . @param server the server domain @param port TCP port to connect @param username the account username @param password the account password
private boolean createJabberAccount(String server, int port, String username,
        String password)
    {
            return true;
        }
        catch (XMPPException exc)
            logger.error(exc);
            if (exc instanceof XMPPErrorException
                && ((XMPPErrorException)exc).getXMPPError().getCondition() == forbidden)
            {
                showErrorMessage(Resources.getString(
                        "plugin.jabberaccregwizz.USER_EXISTS_ERROR"));
                logger.error(
                    "Error when created a new Jabber account :" +
                    " user already exist");
            }
            else
            {
                showErrorMessage(Resources.getResources().getI18NString(
                        "plugin.jabberaccregwizz.UNKNOWN_XMPP_ERROR",
                        new String[]{exc.getMessage()}
                    ));
            }
            return false;
        }
        return true;
    }
private boolean createJabberAccount ( String server , int port , String username , String password ) { return true ; }
Connects to the chosen server and creates a new account with Smack.
Connects to the chosen server and creates a new account with Smack .
//        try //        { //            //ConnectionConfiguration config = new ConnectionConfiguration( //            //    server, port); //            //xmppConnection = new XMPPConnection(config); //            //xmppConnection.connect(); //            //accountManager = new AccountManager(xmppConnection); //            //accountManager.createAccount(username, password); // //            return true; //        } //        catch (XMPPException exc) //        { //            logger.error(exc); //            if (exc instanceof XMPPErrorException //                && ((XMPPErrorException)exc).getXMPPError().getCondition() == forbidden) //            { //                showErrorMessage(Resources.getString( //                        "plugin.jabberaccregwizz.USER_EXISTS_ERROR")); // //                logger.error( //                    "Error when created a new Jabber account :" + //                    " user already exist"); //            } //            else //            { //                showErrorMessage(Resources.getResources().getI18NString( //                        "plugin.jabberaccregwizz.UNKNOWN_XMPP_ERROR", //                        new String[]{exc.getMessage()} //                    )); //            } // //            return false; //        }