983984985986987988989990991992993
Transaction tx = txRep.createTransaction(new MockXid()); MessageReference ref1 = ms.reference(m1); Delivery delivery = queue.handle(observer, ref1, null); assertTrue(r.getMessages().size() == 1); //simulating processing transaction delivery.acknowledge(tx);
8283848586878889909192
queue1.handle(null, refs1[i], tx); refs2[i] = msgs[i].createReference(); queue2.handle(null, refs2[i], tx); } tx.commit(); //Queue1 List refIds = getPagedReferenceIds(queue1.getChannelID());
queue1.handle(null, refs1[i], null); refs2[i] = msgs[i].createReference(); queue2.handle(null, refs2[i], null); } //Queue1 List refIds = getReferenceIdsOrderedByPageOrd(queue1.getChannelID()); assertEquals(0, refIds.size());
128129130131132133134135136137138
queue1.handle(null, refs1[i], null); refs2[i] = msgs[i].createReference(); queue2.handle(null, refs2[i], null); } //Queue1 refIds = getReferenceIdsOrderedByPageOrd(queue1.getChannelID());
175176177178179180181182183184185
223224225226227228229230231232233
135136137138139140141142143144145
queue1.handle(null, refs1[i], tx); refs2[i] = msgs[i].createReference(); queue2.handle(null, refs2[i], tx); } tx.commit(); //Queue1 refIds = getPagedReferenceIds(queue1.getChannelID());
191192193194195196197198199200201
246247248249250251252253254255256
6566676869707172737475
p.activate(); CoreMessage m = null; m = CoreMessageFactory.createCoreMessage(0); p.handle(null, m.createReference(), null); m = CoreMessageFactory.createCoreMessage(1); p.handle(null, m.createReference(), null); }