public boolean iniciarConexion() throws GlobalException, NoDataException, SQLException{ 
        
        boolean exito = false;
        try {
            conectar(user, pass,ip,port,db); 
            exito = true;
        }
        catch(ClassNotFoundException ex)
        {
            exito = false;
        }
        catch (SQLException e) {
            throw new NoDataException("La base de datos no se encuentra disponible");
        }   
        finally{
            desconectar();
        }
        return exito;
    }