Examples of unsubscribe()


Examples of javax.jms.Session.unsubscribe()

            assertEquals("message" + i, tm.getText());
         }

         cons.close();

         session.unsubscribe("mysub1");
      }
      finally
      {
         if (conn != null)
         {
View Full Code Here

Examples of javax.jms.Session.unsubscribe()

            assertEquals("message" + i, tm.getText());
         }

         cons.close();

         session.unsubscribe("mysub1");
      }
      finally
      {
         if (conn != null)
         {
View Full Code Here

Examples of javax.jms.Session.unsubscribe()

        //check the dur sub's underlying queue now has msg count 0
        assertEquals("Msg count should be 0", 0, ((AMQSession<?, ?>) session2).getQueueDepth(subQueue, true));

        consumer2.close();
        _logger.info("Unsubscribe session2/consumer2");
        session2.unsubscribe("MySubscription");
       
        ((AMQSession<?, ?>) session2).sync();
       
        if(isJavaBroker())
        {
View Full Code Here

Examples of javax.jms.TopicSession.unsubscribe()

      TopicSession ts = conn.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);

      try
      {
         ts.unsubscribe("invalid-subscription-name");
         fail("this should fail");
      }
      catch(javax.jms.InvalidDestinationException e)
      {
         // OK
View Full Code Here

Examples of javax.jms.TopicSession.unsubscribe()

    */
   public void removeDurableSubscription() throws Exception
   {

      TopicSession session = topicDurableConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
      session.unsubscribe("test");
   }

   /**
    * The JUnit setup method
    *
 
View Full Code Here

Examples of javax.jms.TopicSession.unsubscribe()

      sub1.close();
      sub2.close();
      sub3.close();

      session.unsubscribe("sub1");

      topicConnection.stop();
      topicConnection.close();

      disconnect();
View Full Code Here

Examples of javax.jms.TopicSession.unsubscribe()

         getLog().debug("Closing the send session");
         sendSession.close();

         getLog().debug("Removing the subscription");
         subSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
         subSession.unsubscribe("test");

      }
      finally
      {
         getLog().debug("Closing the connection");
View Full Code Here

Examples of javax.jms.TopicSession.unsubscribe()

         assertTrue("Should get Message2", message.getText().equals("Message2"));
         getLog().debug("Closing the subscriber");

         getLog().debug("Removing the subscription");
         subSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
         subSession.unsubscribe("test");
         subSession.close();

      }
      finally
      {
View Full Code Here

Examples of net.timewalker.ffmq3.local.destination.LocalTopic.unsubscribe()

        {
            Iterator topics = topicMap.values().iterator();
            while (topics.hasNext())
            {
                LocalTopic topic = (LocalTopic)topics.next();
                topic.unsubscribe(clientID,subscriptionName);
            }
        }
       
        // Then delete subscription related queues
        String subscriberID = clientID+"-"+subscriptionName;
View Full Code Here

Examples of net.timewalker.ffmq3.local.session.LocalSession.unsubscribe()

    }
   
    private UnsubscribeResponse processUnsubscribe( UnsubscribeQuery query ) throws JMSException
    {
      LocalSession session = lookupSession(query);
      session.unsubscribe(query.getSubscriptionName());

        return new UnsubscribeResponse();
    }
   
    private PingResponse processPing( PingQuery query ) throws JMSException
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.