Inserting to DB after ejbCreate
As I understand it, Glassfish performs all of its Entity Bean insertions at the end of the transaction. I'm migrating a Weblogic application which expects some data to exist in the database once the ejbCreate method ends to prevent foreign key constraint issues.
I've had a look at the "flush-at-end-of-method" setting for my Entity Bean, but this does not appear to work, perhaps I'm configuring it incorrectly.
Does anyone know how I can get my Entity Bean to insert into the DB after the ejbCreate (or even ejbPostCreate) method completes?
I'm using GlassFish 3.1.2