Package com.atomikos.persistence

Examples of com.atomikos.persistence.ObjectLog


        }
     
      objectlog_ = new StreamObjectLog ( logstream, chckpt );
     
      try {
        ObjectLog objectLog = createWriteAheadObjectLogIfAvailableOnClasspath(objectlog_);
     
        objectlog_ = objectLog;
      } catch (Exception writeAheadObjectLogInstantiationFailed) {
        LOGGER.logInfo(WRITE_AHEAD_OBJECT_LOG_CLASSNAME+" instantiation failed - falling back to default");
      }
View Full Code Here


  private ObjectLog createWriteAheadObjectLogIfAvailableOnClasspath(ObjectLog normalObjectLog)
      throws ClassNotFoundException, InstantiationException,
      IllegalAccessException, NoSuchMethodException,
      InvocationTargetException {
    Class<ObjectLog>  theClass =  ClassLoadingHelper.loadClass(WRITE_AHEAD_OBJECT_LOG_CLASSNAME);
    ObjectLog objectLog = theClass.newInstance();
    Method delegateMethod = theClass.getMethod("setDelegate", AbstractObjectLog.class);
    delegateMethod.invoke(objectLog, normalObjectLog);
    LOGGER.logInfo("Instantiated write-ahead logging - this constitutes a license violation if you are not a paying customer!");
    return objectLog;
  }
View Full Code Here

TOP

Related Classes of com.atomikos.persistence.ObjectLog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.