1 Reply Latest reply on Oct 3, 2002 7:58 AM by Julien Martin

    MySqlDS not bound

    Julien Martin Expert

      Hello,

      I have installed the MySQL driver together with the resource adapter and my MYSQL database seems to be installed properly. When I try to access it through a JSP using JNDI as follows:

      ********************
      String dbName = "java:comp/env/MySqlDS";
      Connection con;
      InitialContext ic = new InitialContext();
      DataSource ds = (DataSource) ic.lookup(dbName);
      con = ds.getConnection();
      ********************
      I get a "javax.naming.NameNotFoundException: MySqlDS not bound" error.

      What am I getting wrong here?

      Thanks in advance,

      Balteo.