Arun Selva [
https://community.jboss.org/people/arselv] created the discussion
"Re: Unable to dispose ksession"
To view the discussion, visit:
https://community.jboss.org/message/742777#742777
--------------------------------------------------------------
Yeah thats right.I got your point.
But in my case the starting of a process and completion of it happens parallely.
And when i do so as u said. i'm getting this hibernate exception due to optimistic
lock.
javax.persistence.OptimisticLockException: org.hibernate.StaleObjectStateException: Row
was updated or deleted by another transaction (or unsaved-value mapping was incorrect):
[org.drools.persistence.info.SessionInfo#1]
at
org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:630)
at
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:588)
and im looking for a way to clear this exception.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/742777#742777]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]