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();
}