194195196197198199200201202203204
try { pm2.getTransaction().commit(); fail("Should have caused OL exception."); } catch (Exception jfe) { pm2.getTransaction().begin(); pm2.refresh(pc2); pc2.setStringField("changed2"); pm2.getTransaction().commit(); } pm1.close(); pm2.close();