cnx = factory.createXAQueueConnection(userName, password);
} else {
XAConnectionFactory factory = XALocalConnectionFactory.create();
setParameters(factory);
((AbstractConnectionFactory) factory).setIdentityClassName(identityClass);
cnx = factory.createXAConnection(userName, password);
}
} else {
if (cxRequest instanceof QueueConnectionRequest) {
XAQueueConnectionFactory factory = XAQueueTcpConnectionFactory.create(hostName, serverPort);
setParameters(factory);