-
1. Detached entity passed to persist after timeout, but which one?
wdfink Feb 2, 2011 3:23 AM (in response to christophe.carvalho)What EJB version do you use?
Could you provide a detailed error stacktrace and a bit code?
-
2. Detached entity passed to persist after timeout, but which one?
christophe.carvalho Feb 2, 2011 4:16 AM (in response to wdfink)I use EJB 3, her is a sample code :
@Stateful
@Scope(ScopeType.CONVERSATION)
@Name("activitesByCollaborateurCrossData")
public class activitesByCollaborateurCrossDataBean implements activitesByCollaborateurCrossData {
...
public void persist() {
feuilleDeTemps.setChargesAssignables(chargesAssignables);
// Force le rafraichissement des feuilles de temps du collaborateur
selectedCollaborateur.getFeuilleDeTempses().add(feuilleDeTemps);
feuilleDeTempsHome.setInstance(feuilleDeTemps);
if (feuilleDeTemps.getFeuilleDeTempsId() == 0) {
feuilleDeTempsHome.persist();
} else {
feuilleDeTempsHome.update();
}
}
-
3. Re: Detached entity passed to persist after timeout, but which one?
christophe.carvalho Oct 14, 2011 8:13 AM (in response to christophe.carvalho)Nobody has encountered the same problem ?
Other case, wait more than 10 minutes, then try to update an entity with entityHome.update() or entityManager.flush()... the updates are not persist in database and the is no error in the log ...
The session and conversation timeouts have been increased to 30 minutes.
Regards.
-
4. Re: Detached entity passed to persist after timeout, but which one?
mausbull Nov 17, 2011 5:53 AM (in response to christophe.carvalho)Hi,
I just stumbled across your post and found this post:
http://community.jboss.org/thread/140870
Maybe that fixes your problem.
Cheers