I have more informations :
When it happens, there are 2 same requests being sent to websphere.
My session is being opened by the first query and all my sessions are closed at the end of that request's treatment.
So, it seems that the second delete is performed in another session, and that when it tries to find if it exists
Quote:
Ctlg catalog = DAOFactory.getCatalogDAO().getCtlg(cd, rav, secondLoc);
if (catalog == null) {
...
}
So in that case i'm having in 2 different sessions the same object. And hibernate tries to delete it in the 2 sessions nearly at the same moment.
Should i use the get method to avoid that or what else can be done ?
Thank's
Jim