Hi, team:
I have a problem with my CMP beans(session, entity bean) for roll back.
2 entity beans(eA, eB), 1 container managed session bean(sBean). The sBean has a method(sMethod) to create eA and eB. All “trans-attribute” for eA, eB and sBean are “Required”. sMethod first creates eA, then creates eB. when it throws EJBException for failure to create eB, transaction is not rolled back, therefore, the record for eA-related table is created and not for eB-related table.
Can anyone give me a clue? May it be because of “autocommit” property as true for mySQL? how to make it as false? or may it be from other causes?
Thanks in advance!
Paul