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 :(
you should write a CMT(Container Managed Transaction) ejb.