This content has been marked as final.
Show 2 replies
-
1. Re: FK- Insert and PostEJBCreate
anotherjavaguy Aug 23, 2005 3:48 PM (in response to anotherjavaguy)OK It looks like there is a container configuration setting for the jboss.xml that will do the inserts on post creates.
mmmm...now to figure out how to do it with xdoclet?
anyone have an example? -
2. Re: FK- Insert and PostEJBCreate
anotherjavaguy Aug 23, 2005 4:34 PM (in response to anotherjavaguy)OK, just to close this out...
This configuration setting should do it.<container-configurations> <container-configuration extends="Standard CMP 2.x EntityBean"> <container-name>INSERT after ejbPostCreate Container</container-name> <insert-after-ejb-post-create>true</insert-after-ejb-post-create> </container-configuration> </container-configurations>
I added this to my merge directory in xdoclet and it gets included in the jboss.xml
I didnt have much luck though with the redeploy so i changed the base configurations settings in the jboss.xml in the conf directory directly undeployed, cycled etc and now it seems to wait until after the post to do the insert.