if (wrappedConnectionFactory == null) {
if (connectionFactory == null) {
connectionFactory = JMSFactory.getConnectionFactoryFromJndi(this);
}
if (wrapInSingleConnectionFactory && !(connectionFactory instanceof SingleConnectionFactory)) {
SingleConnectionFactory scf;
if (useJms11) {
scf = new SingleConnectionFactory(connectionFactory);
} else {
scf = new SingleConnectionFactory102(connectionFactory, pubSubDomain);
}
if (getDurableSubscriptionClientId() != null) {
scf.setClientId(getDurableSubscriptionClientId());
}
scf.setReconnectOnException(isReconnectOnException());
wrappedConnectionFactory = scf;
} else {
wrappedConnectionFactory = connectionFactory;
}
}