Hi,
all,
I have a CMP
transaction problem and can not find correct answer from the forum.
I appreciate very
much if anyone can give me a clue.
I have a
stateless session bean and 2 CMP entity beans. (trans-attribute
all set to
Required.).
In the session bean,
I create 2 entity beans. The problem is, no matter the creation of the second
entity is successful or not, the first entity bean is always created the
database, the transaction manager does not rollback the first entity bean. (I
set up a unique constraint to the second entity, an exception
will be thrown from the jdbc driver).
My environment is
Jboss3.2.0RC2 and Oracle 8.1.7. I tried other jboss versions and MS Sql
Server as well.
There is just one
database setup so I do not need distributed transaction. Anyway, I tried
oracle-ds.xml, oracle-xa-ds.xml, oracle-service.xml, oracle-xa-service.xml. none
works.
If any body can
help, thank you very much.
Fan