1 Reply Latest reply on Nov 20, 2006 8:37 AM by Weston M. Price

    java.sql.SQLException: Unsupported feature

    kalyan raja Newbie

      Hi I am trying to execute the following code ..

      String activateQuery = "UPDATE TABLE_NAME SET FIELD_NAME=FIELD_VALUE WHERE CONDITION_FIELD_NAME = CONDITION_VALUE";
      preparedStatement = connection.prepareStatement(activateQuery);
      try{
      preparedStatement.addBatch("activateQuery");
      } catch(SQLException e){

      throw new Exception();
      }


      it is giving error like this

      java.sql.SQLException: Unsupported feature

      we are setting the parameters in another method for preparedStatement.
      I have some doubts like
      1) will jboss supports batch addition to prepared satetment?

        • 1. Re: java.sql.SQLException: Unsupported feature
          Weston M. Price Master

          PLEASE DO NOT CROSS POST

          This has nothing to do with JBoss supporting a particular feature. JBoss supports whatever the underlying JDBC driver supports. The exception you are seeing:

          java.sql.SQLException: Unsupported feature
          


          is being reported to you by your driver, not by JBoss.

          Of course, since you decided not to include your JBoss version, JDBC driver version, database version or any other relevant information it's almost impossible to help.

          Please read:

          http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossHelp

          These instructions are applicable to any forum you post to, not just to JCA.