Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 20, 3, true) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 20, 3, true) };
   public void test_Simple_TP_LX() throws Exception   {      Connection conn1 = cf.createConnection();      Connection conn2 = cf.createConnection();      conn2.start();            Session sessSend = conn1.createSession(true, Session.SESSION_TRANSACTED);      XASession sessReceive = ((XAConnection)conn2).createXASession();            MessageConsumer cons = sessReceive.createConsumer(queue1);      MessageProducer prod = sessSend.createProducer(queue1);      prod.setDeliveryMode(DeliveryMode.PERSISTENT);            Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33),            new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 20, 3, true) };            runRunners(runners);            conn1.close();      conn2.close();   }