1 Reply Latest reply on Feb 24, 2002 3:33 AM by jacky

    Problem with Enitity bean BMP ?

    pavel2107

      Hi !
      I use Jboss 2.4.4 and Oracle 8.1.7.
      In ejbStore I write:
      Connection conn = getConnection(); // here I get conn from DataSource
      conn.setAutoCommit( false);
      PreparedStatement stmt = conn.prepareStatement( SQL);
      stmt.setString( 1, record.getEmpName());
      stmt.setString( 2, record.getEmpID());
      int nRows = stmt.executeUpdate(); // It's really = 1 !
      stmt.close();
      conn.close();

      In client app I write
      trans.begin();
      bean = home.findByPrimaryKey( "1");
      bean.setName( "SHAR");
      trans.commit();

      But in database nothing changed ! Can anybody help me ? I'm newer in EJB :(