I am using jboss-as-7.1.1.Final, hibernate 4.0 with Rest-easy framework. Issue is after persisting the record in DB immediately an update call is fired to update/insert child entity of the persisted object. So I am using em.find(record.class, primary key(long)) method to get the persisted parent record and checking null. If the parent record is not null then persisting into child record. It is working fine in local with minimal request. But when i do load testing the parent record is coming as null even though the parent object is present in DB.
|