public TopicConnectionFactory lookupTopicConnectionFactory(String name) throws JMSException, NamingException {
  if (usingJNDI) {
    return super.lookupTopicConnectionFactory(name);
  }
 else {
    MQTopicConnectionFactory tcf=new MQTopicConnectionFactory();
    configureMQConnectionFactory(tcf);
    return tcf;
  }
}

public TopicConnectionFactory lookupTopicConnectionFactory ( String name ) throws JMSException , NamingException { if ( usingJNDI ) { return super . lookupTopicConnectionFactory ( name ) ; } else { MQTopicConnectionFactory tcf = new MQTopicConnectionFactory ( ) ; configureMQConnectionFactory ( tcf ) ; return tcf ; } }
create a new vendor - specific connectionfactory ( or delegate to jndi if that is has been selected ) .
