1 Reply Latest reply on Dec 13, 2002 2:00 PM by Eduardo Elgueta

    help me!this is a simple problem.

    royyin Newbie

      i want to use the connection pool by a common java,not use ejb.but it`s display "Could not dereference object".
      the code:
      Context initContext = new InitialContext();
      DataSource ds = (DataSource)initContext.lookup("java:comp/env/MSSQLDS");
      connection = ds.getConnection();
      pstmt=connection.prepareStatement("select count(bank) from bank");

      Help me!