Example usage for org.apache.commons.transaction.file ResourceManagerSystemException printStackTrace

List of usage examples for org.apache.commons.transaction.file ResourceManagerSystemException printStackTrace

Introduction

In this page you can find the example usage for org.apache.commons.transaction.file ResourceManagerSystemException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:org.jboss.jbossts.fileio.xalib.txdirs.dir.XAFileResourceManager.java

/**
 * After a system crash and upon recovery phase the <code>FileResourceManager</code>
 * object needs to be re-initialised./*from  w  w  w  .ja  va 2s.c o m*/
 */
private void initFREM() {
    String workDir = storeDir + "/" + Globals.WORK_DIR_NAME;
    freMngr = new FileResourceManager(storeDir, workDir, false,
            new CommonsLoggingLogger(LogFactory.getLog(XADir.class.getName())));
    try {
        freMngr.start(); // will automatically recover incomplete txs
    } catch (ResourceManagerSystemException e) {
        e.printStackTrace();
    }
}