0 Replies Latest reply on Sep 19, 2002 11:57 AM by Mikkel Heisterberg

    NoSuchMethodException thrown when loading DB2XADataSource

    Mikkel Heisterberg Newbie

      Hi,

      when trying to use the DB2 XA DataSource class (COM.ibm.db2.jdbc.DB2XADataSource) I get a NoSuchMethodException thrown by the Configurator when creating a connection pool. I tried listing the methods of the DB2XADataSource class:
      Method 0: hashCode()
      Method 1: wait()
      Method 2: wait(long, int)
      Method 3: wait(long)
      Method 4: getClass()
      Method 5: equals(java.lang.Object)
      Method 6: notify()
      Method 7: notifyAll()
      Method 8: toString()
      Method 9: getLanguage()
      Method 10: getConnectionAttribute()
      Method 11: getDLLVersion()
      Method 12: getDatabaseName()
      Method 13: getDescription()
      Method 14: getLogWriter()
      Method 15: getLoginTimeout()
      Method 16: getPassword()
      Method 17: getPortNumber()
      Method 18: getReference()
      Method 19: getServerName()
      Method 20: getUser()
      Method 21: setConnectionAttribute(java.lang.String)
      Method 22: setDatabaseName(java.lang.String)
      Method 23: setDescription(java.lang.String)
      Method 24: setLanguage(java.lang.String)
      Method 25: setLogWriter(java.io.PrintWriter)
      Method 26: setLoginTimeout(int)
      Method 27: setPassword(java.lang.String)
      Method 28: setPortNumber(int)
      Method 29: setServerName(java.lang.String)
      Method 30: setUser(java.lang.String)
      Method 31: getXAConnection(java.lang.String, java.lang.String)
      Method 32: getXAConnection()

      Does anyone know the methods called by the org.jboss.jdbc.XADataSourceLoader class ? I know the class wouldn't compile unless the DB2XADataSource implemented the XADataSource interface but I'm clueless about what's wrong...

      Anyone with any pointers (did the usejdbc2 script to upgrade to the JDBC 2.0 classes) ?

      (Running DB2 personal edition 7.2 fixpack 7 on Windows 2000 prof. fixpack 3 and JBoss 2.4.8, Catalina 4.0.4 bundle).

      Mikkel Heisterberg