Search in sources :

Example 1 with MsgNoVerifier

use of jms.base.MsgNoVerifier in project swiftmq-ce by iitsoftware.

the class Replier method setUp.

protected void setUp() throws Exception {
    setUp(false, Session.CLIENT_ACKNOWLEDGE, false, true);
    verifier = new MsgNoVerifier(this, nMsgs, "no");
}
Also used : MsgNoVerifier(jms.base.MsgNoVerifier)

Example 2 with MsgNoVerifier

use of jms.base.MsgNoVerifier in project swiftmq-ce by iitsoftware.

the class Requestor method setUp.

protected void setUp() throws Exception {
    setUp(false, Session.CLIENT_ACKNOWLEDGE, false, false);
    requestSender = qs.createSender(getQueue(requestQueueName));
    replyQueue = getQueue(replyQueueName);
    replyReceiver = qs.createReceiver(getQueue(replyQueueName));
    verifier = new MsgNoVerifier(this, nMsgs, "no");
}
Also used : MsgNoVerifier(jms.base.MsgNoVerifier)

Example 3 with MsgNoVerifier

use of jms.base.MsgNoVerifier in project swiftmq-ce by iitsoftware.

the class Forwarder method setUp.

protected void setUp() throws Exception {
    super.setUp();
    mySender = qs.getQueueSession().createSender(getQueue(targetQueueName));
    myReceiver = qs.getQueueSession().createReceiver(getQueue(sourceQueueName));
    verifier = new MsgNoVerifier(this, nMsgs, "no");
// verifier.setCheckSequence(false);
}
Also used : MsgNoVerifier(jms.base.MsgNoVerifier)

Example 4 with MsgNoVerifier

use of jms.base.MsgNoVerifier 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);
}
Also used : XAQueueSession(javax.jms.XAQueueSession) MessageListener(javax.jms.MessageListener) ServerSessionImpl(jms.base.ServerSessionImpl) MsgNoVerifier(jms.base.MsgNoVerifier) ServerSessionPoolImpl(jms.base.ServerSessionPoolImpl)

Example 5 with MsgNoVerifier

use of jms.base.MsgNoVerifier 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);
}
Also used : XAQueueSession(javax.jms.XAQueueSession) MessageListener(javax.jms.MessageListener) ServerSessionImpl(jms.base.ServerSessionImpl) MsgNoVerifier(jms.base.MsgNoVerifier) ServerSessionPoolImpl(jms.base.ServerSessionPoolImpl)

Aggregations

MsgNoVerifier (jms.base.MsgNoVerifier)141 MessageListener (javax.jms.MessageListener)36 ServerSessionImpl (jms.base.ServerSessionImpl)36 ServerSessionPoolImpl (jms.base.ServerSessionPoolImpl)36 Semaphore (com.swiftmq.tools.concurrent.Semaphore)18 QueueSession (javax.jms.QueueSession)18 XAQueueSession (javax.jms.XAQueueSession)10 TopicSession (javax.jms.TopicSession)6 XATopicSession (javax.jms.XATopicSession)2