Works great. Without this the INSERT happens after ejbCreate but you cannot set your CMRs until ejbPostCreate: hence the null constraint violations on foreign keys. With this switch the INSERT happens after ejbPostCreate giving you a chance to update the CMRs and by extension foreign keys will be fully populated. Override "Standard CMP 2.x EntityBean" from jbossstandard.xml by adding the following to your jboss.xml file:
<jboss> ... Stuff ... <container-configurations> <container-configuration extends="Standard CMP 2.x EntityBean"> <container-name>foobar</container-name> <insert-after-ejb-post-create>true</insert-after-ejb-post-create> </container-configuration> </jboss> Note: The container name is not important, this configuration is applied to all of the CMP 2.0 beans listed in this jboss.xml file. ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user