Package com.sun.ejb.base.sfsb.store

Examples of com.sun.ejb.base.sfsb.store.FileTxStoreManager


   
    public static SFSBTxStoreManager createSFSBTxStoreManager(
      String persistenceType)
    {
  if ("file".equalsIgnoreCase(persistenceType)) {
      return new FileTxStoreManager();
  }
        String resolvedPersistenceType
            = getResolvedPersistenceType(persistenceType);
        Exception exception = null;
  try {
      String className = createClassNameFrom(resolvedPersistenceType);
      return (SFSBTxStoreManager)
        (Class.forName(className)).newInstance();
  } catch (ClassNotFoundException cnfEx) {
            exception = cnfEx;
      _logger.log(Level.FINE,
    "Exception while creating SFSBTxStoreManager for persistence "
    + "type: " + persistenceType + ". Exception: " + cnfEx);
  } catch (Exception ex) {
            exception = ex;
      _logger.log(Level.FINE,
    "Exception while creating SFSBTxStoreManager for "
    + "persistence type: " + persistenceType, ex);
  }

        if (_logger.isLoggable(Level.WARNING)) {
            _logger.log(Level.WARNING, "Created FileTxStoreManager for persistence"
                    + " type: " + persistenceType, exception);
        }

  return new FileTxStoreManager();
    }    
View Full Code Here

TOP

Related Classes of com.sun.ejb.base.sfsb.store.FileTxStoreManager

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.