use of jms.base.ServerSessionImpl in project swiftmq-ce by iitsoftware.
the class Consumer method setUp.
protected void setUp() throws Exception {
super.setUp();
sender.close();
receiver.close();
qs.close();
pool = new ServerSessionPoolImpl();
for (int i = 0; i < 1; i++) {
XAQueueSession session = qc.createXAQueueSession();
session.setMessageListener(new Listener(session));
pool.addServerSession(new ServerSessionImpl(pool, session));
}
cc = qc.createConnectionConsumer(getQueue(queueName), null, pool, 5);
verifier = new MsgNoVerifier(this, nMsgs, "no");
// verifier.setCheckSequence(false);
}
use of jms.base.ServerSessionImpl in project swiftmq-ce by iitsoftware.
the class Forwarder method setUp.
protected void setUp() throws Exception {
super.setUp();
sender.close();
receiver.close();
qs.close();
pool = new ServerSessionPoolImpl();
for (int i = 0; i < 1; i++) {
XAQueueSession session = qc.createXAQueueSession();
session.setMessageListener(new Listener(session, session.getQueueSession().createSender(getQueue(targetQueueName))));
pool.addServerSession(new ServerSessionImpl(pool, session));
}
cc = qc.createConnectionConsumer(getQueue(sourceQueueName), null, pool, 5);
verifier = new MsgNoVerifier(this, nMsgs, "no");
// verifier.setCheckSequence(false);
}
use of jms.base.ServerSessionImpl in project swiftmq-ce by iitsoftware.
the class Consumer method setUp.
protected void setUp() throws Exception {
super.setUp();
sender.close();
receiver.close();
qs.close();
pool = new ServerSessionPoolImpl();
for (int i = 0; i < 10; i++) {
XAQueueSession session = qc.createXAQueueSession();
session.setMessageListener(new Listener(session));
pool.addServerSession(new ServerSessionImpl(pool, session));
}
cc = qc.createConnectionConsumer(queue, null, pool, 5);
verifier = new MsgNoVerifier(this, nMsgs, "no");
verifier.setCheckSequence(false);
}
use of jms.base.ServerSessionImpl in project swiftmq-ce by iitsoftware.
the class Consumer method setUp.
protected void setUp() throws Exception {
super.setUp();
sender.close();
receiver.close();
qs.close();
pool = new ServerSessionPoolImpl();
for (int i = 0; i < 10; i++) {
XAQueueSession session = qc.createXAQueueSession();
session.setMessageListener(new Listener(session));
pool.addServerSession(new ServerSessionImpl(pool, session));
}
cc = qc.createConnectionConsumer(getQueue(queueName), null, pool, 5);
verifier = new MsgNoVerifier(this, nMsgs, "no");
verifier.setCheckSequence(false);
}
use of jms.base.ServerSessionImpl in project swiftmq-ce by iitsoftware.
the class Forwarder method setUp.
protected void setUp() throws Exception {
super.setUp();
sender.close();
receiver.close();
qs.close();
pool = new ServerSessionPoolImpl();
for (int i = 0; i < 10; i++) {
XAQueueSession session = qc.createXAQueueSession();
session.setMessageListener(new Listener(session, session.getQueueSession().createSender(getQueue(targetQueueName))));
pool.addServerSession(new ServerSessionImpl(pool, session));
}
cc = qc.createConnectionConsumer(getQueue(sourceQueueName), null, pool, 5);
verifier = new MsgNoVerifier(this, nMsgs, "no");
verifier.setCheckSequence(false);
}
Aggregations