[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - jboss+mysql : transaction not rolling back properly!!!

2006-05-07 Thread sajid2045
Hi all, I am using jboss4.0.3spi with mysql 4.1.2. For some strange reason, my transactions are not rolling back properly. Say I am creating an Entity bean at the beginning of a business method and at the end of that method, i am rolling back the transaction. But the entity remains in the db(i

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Feasibility of using Optimistic Locking managing

2006-04-25 Thread sajid2045
Hi all, I am using versioning for optimistic locking pattern as described in ejb design pattern. all by business operations takes DTOs and does bulk operation. Now, I am keeping a version cmp field in my dtos and programatically increasing it for each update operation. If I find a version mismat

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Transaction not rolling back if I call ejbSelectXXX()

2006-04-25 Thread sajid2045
Ok, I am just lost here. In my business method, I have, this.setX(10); //x was 0 ejbSelectSomeMethod(20); this.setY(20); // y was 0 try { callToAnotherMethod(); //I get an exception here. } catch(Exception e) { getEntityContext().setRollBackOnly(); throw e; } Now, what happnes is quite funny. now

[JBoss-user] [Installation, Configuration & Deployment] - Transaction not rolling back if I call ejbSelectXXX()

2006-04-25 Thread sajid2045
Ok, I am just lost here. In my business method, I have, this.setX(10); //x was 0 ejbSelectSomeMethod(20); this.setY(20); // y was 0 try { callToAnotherMethod(); //I get an exception here. } catch(Exception e) {