Defaults.IS_SAME_RM_OVERRIDE, Defaults.INTERLEAVING, Defaults.PAD_XID, Defaults.WRAP_XA_RESOURCE, Defaults.NO_TX_SEPARATE_POOL);
} else {
pool = new CommonPoolImpl(minSize, maxSize, prefill, useStrictMin, flushStrategy);
}
CommonTimeOutImpl timeOut = new CommonTimeOutImpl(null, null, null, null, null);
CommonSecurityImpl security = null;
// register the XA Connection *without* recovery. HornetQ already takes care of the registration with the correct credentials
// when its ResourceAdapter is started
Recovery recovery = new Recovery(new CredentialImpl(null, null, null), null, Boolean.TRUE);
CommonValidationImpl validation = new CommonValidationImpl(null, null, false);
return new CommonConnDefImpl(Collections.<String, String>emptyMap(), RAMANAGED_CONN_FACTORY, jndiName, HQ_CONN_DEF, true, true, true, pool, timeOut, validation, security, recovery);