Package org.hornetq.api.core.client

Examples of org.hornetq.api.core.client.ClientSession.deleteQueue()


      int numberOfPages = addMessages(NUM_MESSAGES, 1024 * 1024);

      ServerLocator locator = createInVMNonHALocator();
      ClientSessionFactory sf = locator.createSessionFactory();
      ClientSession session = sf.createSession();
      session.deleteQueue(ADDRESS);

      System.out.println("NumberOfPages = " + numberOfPages);

      session.close();
      sf.close();
View Full Code Here


      assertNotNull(message);
      assertEquals(text2, message.getStringProperty("prop"));

      consumer.close();
      divertedConsumer.close();
      session.deleteQueue(queue);
      session.deleteQueue(divertQueue);
      session.close();
     
      locator.close();
     
View Full Code Here

      assertEquals(text2, message.getStringProperty("prop"));

      consumer.close();
      divertedConsumer.close();
      session.deleteQueue(queue);
      session.deleteQueue(divertQueue);
      session.close();
     
      locator.close();
     
   }
View Full Code Here

      assertEquals(text2, message.getStringProperty("prop"));

      sourceConsumer.close();
      targetConsumer.close();
     
      session.deleteQueue(sourceQueue);
      session.deleteQueue(targetQueue);
     
      session.close();
     
      locator.close();
View Full Code Here

      sourceConsumer.close();
      targetConsumer.close();
     
      session.deleteQueue(sourceQueue);
      session.deleteQueue(targetQueue);
     
      session.close();
     
      locator.close();
   }
View Full Code Here

         assertNotNull(receivedMessage);
         assertEquals(message.getStringProperty("key"), receivedMessage.getStringProperty("key"));
         receivedMessage.acknowledge();

         consumer.close();
         consSession.deleteQueue("bar");
         locator.close();

      }
      catch(Exception e)
      {
View Full Code Here

         throw new IllegalArgumentException("No sf at " + node);
      }

      ClientSession session = sf.createSession(false, true, true);

      session.deleteQueue(queueName);

      session.close();
   }

   protected void addConsumer(final int consumerID, final int node, final String queueName, final String filterVal) throws Exception
View Full Code Here

         session.commit();

         session.start();

         session.deleteQueue(PagingTest.ADDRESS.concat("=1"));

         sf = locator.createSessionFactory();

         session = sf.createSession(false, false, false);
View Full Code Here

         prod.send(msg);
      }
     
      session.commit();
     
      session.deleteQueue(ADDRESS);
      session.close();
      sf.close();
      locator.close();
      server.stop();
      server.start();
View Full Code Here

                long msgCount =
                    session.queueQuery(new SimpleString(queues[i])).getMessageCount();
                if (msgCount == 0) {
                    log.debug(String.format("found queue '%s' with 0 messages. deleting",
                        queues[i]));
                    session.deleteQueue(queues[i]);
                }
                else {
                    log.debug(String.format("found queue '%s' with %d messages. kept",
                        queues[i], msgCount));
                }
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.