*/
protected void assureReady() throws ResourceManagerSystemException
{
if (operationMode != OPERATION_MODE_STARTED && operationMode != OPERATION_MODE_STOPPING)
{
throw new ResourceManagerSystemException(CoreMessages.resourceManagerNotReady());
}
// do not allow any further writing or commit or rollback when db is
// corrupt
if (dirty)
{
throw new ResourceManagerSystemException(CoreMessages.resourceManagerDirty());
}
}