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
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
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
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)
{