com.mockrunner.mock.jms
Class MockQueueSession

java.lang.Object
  extended by com.mockrunner.mock.jms.MockSession
      extended by com.mockrunner.mock.jms.MockQueueSession
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable, javax.jms.QueueSession, javax.jms.Session

public class MockQueueSession
extends MockSession
implements javax.jms.QueueSession

Mock implementation of JMS QueueSession.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.jms.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED
 
Constructor Summary
MockQueueSession(MockQueueConnection connection)
           
MockQueueSession(MockQueueConnection connection, boolean transacted, int acknowledgeMode)
           
 
Method Summary
protected  javax.jms.MessageProducer createProducerForNullDestination()
           
 javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue)
           
 javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue, java.lang.String messageSelector)
           
 javax.jms.QueueSender createSender(javax.jms.Queue queue)
           
 
Methods inherited from class com.mockrunner.mock.jms.MockSession
addSessionToQueue, addSessionToTopic, close, commit, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createStreamMessage, createTemporaryQueue, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, getAcknowledgeMode, getConnection, getGenericTransmissionManager, getMessageListener, getMessageManager, getNumberCommits, getNumberRollbacks, getQueueTransmissionManager, getTemporaryQueue, getTemporaryQueueList, getTemporaryTopic, getTemporaryTopicList, getTopicTransmissionManager, getTransacted, getTransmissionManager, getTransmissionManagerWrapper, isAutoAcknowledge, isClosed, isCommitted, isRecovered, isRolledBack, recover, rollback, run, setMessageListener, unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.QueueSession
createBrowser, createBrowser, createQueue, createTemporaryQueue
 
Methods inherited from interface javax.jms.Session
close, commit, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createStreamMessage, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, getAcknowledgeMode, getMessageListener, getTransacted, recover, rollback, run, setMessageListener, unsubscribe
 

Constructor Detail

MockQueueSession

public MockQueueSession(MockQueueConnection connection)

MockQueueSession

public MockQueueSession(MockQueueConnection connection,
                        boolean transacted,
                        int acknowledgeMode)
Method Detail

createReceiver

public javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue)
                                       throws javax.jms.JMSException
Specified by:
createReceiver in interface javax.jms.QueueSession
Throws:
javax.jms.JMSException

createReceiver

public javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue,
                                              java.lang.String messageSelector)
                                       throws javax.jms.JMSException
Specified by:
createReceiver in interface javax.jms.QueueSession
Throws:
javax.jms.JMSException

createSender

public javax.jms.QueueSender createSender(javax.jms.Queue queue)
                                   throws javax.jms.JMSException
Specified by:
createSender in interface javax.jms.QueueSession
Throws:
javax.jms.JMSException

createProducerForNullDestination

protected javax.jms.MessageProducer createProducerForNullDestination()
Overrides:
createProducerForNullDestination in class MockSession