0 Replies Latest reply on Dec 29, 2010 1:53 AM by lei shi

    how can i get ParameterMetaData?

    lei shi Newbie

      when i use jboss 5.1,and deploy a datasource,and my code is :

      Connection conn=DBConection.getInstance().getConnection();
         CallableStatement csmt = null;
         String proName = "";
         proName = "{call sp_add(?,?,?)}";
         csmt = conn.prepareCall(proName);
         csmt.clearParameters();
         ParameterMetaData pmd = csmt.getParameterMetaData();
         for (int j = 0; j < 3; j++) {
          System.out.println(pmd.getParameterClassName(j + 1));
         }

       

      ParameterMetaData pmd = csmt.getParameterMetaData();
      i get org.jboss.resource.adapter.jdbc.remote.SerializableParameterMetaData ,not java.sql.ParameterMetaData

       

      why?

       

      i want to invoke pmd.getParameterClassName(),but org.jboss.resource.adapter.jdbc.remote.SerializableParameterMetaData does not have such method.