To stop the delivery of messages, whether Pub/Sub or P2P, the stop method is called.
TopicConnection.start( ); //pub-sub QueueConnection.start( ); //P2P
There were a few more which I can't immediately recall.
Showing messages 1 through 1 of 1.
QueueConnectionFactory = queueConnectionFactory( );
instead of
QueueConnectionFactory queueConnectionFactory;