I am using jBoss. I am updating a table in a SessionBean method (with bean managed transaction). I take a jta transaction, execute a SQL update via JDBC and commit my jta transaction...
However, data hasn't been committed. Indeed it has committed if I use a JDBC transaction...

Where is the problem? Have I to set up any configuration file in order to indicate jBoss the JDBC Connection pool has to use the JTA architecture?

I don't know where's the problem...

the code is something like that:

    UserTransaction ut = context.getUserTransaction();

    try {
      ...

        ut.begin();

        PreparedStatement pst = con.prepareStatement(
          "INSERT INTO USUARIO(CODIGO, LOGIN, PASSWORD, NOMBRE, EMAIL) "
          + "VALUES (?, ?, ?, ?, ?)");
        pst.setInt(1, 1 + buscarMaximoUsuario());
        pst.setString(2, login);
        pst.setString(3, password);
        pst.setString(4, nombre);
        pst.setString(5, email);
        pst.executeUpdate();
        pst.close();

        ut.commit();

    } catch(...) {...}