Exemplo n.º 1
0
 public static Long getMessageCount(String destinationType, String destinationName)
     throws Exception {
   JBossMQProxy proxy =
       new JBossMQProxy(JMSTestFixture.getJndiHost(), JMSTestFixture.getJndiPort());
   Long messageCount =
       proxy.countMessages("name=\"" + destinationName + "\",type=" + destinationType);
   return messageCount;
 }
Exemplo n.º 2
0
 public static void removeMessages(String destinationType, String destinationName)
     throws Exception {
   JBossMQProxy proxy =
       new JBossMQProxy(JMSTestFixture.getJndiHost(), JMSTestFixture.getJndiPort());
   proxy.removeMessages("name=\"" + destinationName + "\",type=" + destinationType);
 }