Hello
whene i test my connection with Mysql db using a main test class
(without the GWT client) it works fine, but when my xxxximpl class
call the connection class I get error to load drivers, I dont really
understand why, is there something that I should add to GWT ? my db
driver are set in classPath and whene I test the communication between
client and server in GWT with a simple helloword it works...I'am
stuck ...any idea whats going on ...
thanks

this is my connection class

public class MySqlConnection {

   private static  String url = db_config.param_db[0];
    private static  String  driver = db_config.param_db[1];
    private static  String  user = db_config.param_db[2];
    private static  String  pass = db_config.param_db[3];
    private static  Connection con = null;
    private  static MySqlConnection _instance ;



    private MySqlConnection(){}


    public static MySqlConnection getInstance() {
        if(_instance == null) {
                return new MySqlConnection();
        }
        return _instance;
    }



    public static Connection getConnection() {
        if(con == null) {
                connect();
        }
        return con;
    }


        //méthode de connexion
        public static void connect(){

                  try {


                      Class.forName(driver).newInstance();
                      con = DriverManager.getConnection(url, user, pass);

                    } catch (Exception e) {
                      Tools.message("Failed to load mSQL driver.");
                      return;
                    }

          }
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to