This content has been marked as final.
Show 1 reply
-
1. Re: Unable to persist over INNODB tables in MySQL
acarrano Dec 23, 2001 3:09 AM (in response to csmike)I have seen this behavior when the EJB's transaction attribute is not set to "Required" (on your ejb-jar.xml file). You can set it to "Required" (as shown in the example below) and that should store the EJB on your table.
<ejb-jar>
<assembly-descriptor>
...
<container-transaction>
<ejb-name>EcommerceCustomerBean</ejb-name>
<method-name>*</method-name>
<trans-attribute>Required</trans-attribute>
</container-transaction>
...
</assembly-descriptor>
</ejb-jar>
This is not a very good solution since setting this attribute to Required on all of your entity EJB's may reduce performace.