Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_NON_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_NON_PERSISTENT_MESSAGES, 100, 67, false) };
Runner[] runners = new Runner[] { new TransactionalSender("prod1", sessSend, prod, NUM_PERSISTENT_MESSAGES, 100, 33), new Transactional2PCReceiver(sessReceive, cons, NUM_PERSISTENT_MESSAGES, 100, 67, false) };
   public void test_Simple_TP_NLX() throws Exception   {      Connection conn = cf.createConnection();      conn.start();            Session sessSend = conn.createSession(true, Session.SESSION_TRANSACTED);      XASession sessReceive = ((XAConnection)conn).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, 100, 67, false) };      runRunners(runners);      conn.close();         }