final int count, final int consumerNum, final int producerNum) throws Exception {
this.consumerList = new ArrayList<MessageConsumer>();
for (int i = 0; i < consumerNum; i++) {
final ConcurrentLinkedQueue<Message> singlequeue = new ConcurrentLinkedQueue<Message>();
this.consumerList.add(i, this.sessionFactory.createConsumer(new ConsumerConfig("group" + i)));
this.consumerList.get(i).subscribe(topic1, maxsize, new MessageListener() {
public void recieveMessages(final Message messages) {
BaseMetaTest.this.queue.add(messages);
singlequeue.add(messages);
}
public Executor getExecutor() {
return null;
}
}).subscribe(topic2, maxsize, new MessageListener() {
public void recieveMessages(final Message messages) {
BaseMetaTest.this.queue.add(messages);
singlequeue.add(messages);
}