- After migrate an EJB2 application from EAP4 or EAP5 to EAP6 we see issues during deletion of entities.
If a relation is marked with cascade-delete it look like that the order of DELETE statements is not respected and therefore a database constraint is violated.
Depend on the used database an Exception was shown, i.e.
Caused by: javax.ejb.RemoveException: JBAS010757: Could not remove 28dfa49b1835aae56b875a7680d56f43 Caused by: com.ibm.db2.jcc.am.SqlIntegrityConstraintViolationException: DB2 SQL Error: SQLCODE=-532, SQLSTATE=23504,
- Batch Cascade Delete is not working in JBoss EAP 6 as in Jboss AS 5.1
jbosscmp-jdbc_4_1.dtddoes not allow value
<batch-cascade-delete>, as it says it should be
<!ELEMENT batch-cascade-delete EMPTY>
- Red Hat JBoss Enterprise Application Platform (EAP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.