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 versioning off. 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 -- not com.redhat.persistence.Session.
never mind this can be closed