throw new IllegalArgumentException("TransactionSupportLevel is null");
if (pool == null)
throw new IllegalArgumentException("Pool is null");
NoTxConnectionManagerImpl cm = null;
switch (tsl)
{
case NoTransaction:
cm = new NoTxConnectionManagerImpl();
break;
case LocalTransaction:
throw new IllegalArgumentException("Transactional connection manager not supported");
case XATransaction:
throw new IllegalArgumentException("Transactional connection manager not supported");
default:
throw new IllegalArgumentException("Unknown transaction support level " + tsl);
}
cm.setSubjectFactory(subjectFactory);
setProperties(cm, pool, allocationRetry, allocationRetryWaitMillis, null);
setNoTxProperties(cm);
return cm;