Red Hat Bugzilla – Bug 100482
event processors need access to the session's flushAll() method
Last modified: 2007-04-18 12:55:58 EDT
While the com.redhat.persistence.Session class and its flushAll()
method are both public, there is no sanctioned way to get the
session object that I am aware of. This is by design.
However, the versioning event processor needs to be able to
call ssn.flushAll(). This is needed in order to correctly
support the methods suspendVersioning() and resumeVersioning().
suspendVersioning() must flush all pending events before turning
Likewise, resumeVersioning() must flush all pending events before
turning versioning back on.
I see that the flushAll() method was added to com.redhat.persistence.Session
in changelist 33910.
The question remains, how do I get the session object?
SessionManager.getSession() returns com.arsdigita.persistence.Session --
this can be closed