Package javax.jms

Examples of javax.jms.TextMessage.acknowledge()


         // failover complete
         assertEquals(0, getServerId(conn));

         // acknowledge the messages
         clik.acknowledge();
         clak.acknowledge();

         // make sure no messages are left in the queue
         checkEmpty(queue[1], 0);
      }
      finally
View Full Code Here


          assertNotNull(tm0_1);
         
          msgIds.add(tm0_1.getText());
        }
       
        tm0_1.acknowledge();
       
        cons0_1.close();
       
        Session sess0_2 = conn0.createSession(false, Session.CLIENT_ACKNOWLEDGE);
       
View Full Code Here

          assertNotNull(tm0_2);
         
          msgIds.add(tm0_2.getText());
        }
       
        tm0_2.acknowledge();
       
        cons0_2.close();
       
       
        //Two on node 1
View Full Code Here

          assertNotNull(tm1_1);
         
          msgIds.add(tm1_1.getText());
        }
       
        tm1_1.acknowledge();
       
        cons1_1.close();
    
        Session sess1_2 = conn1.createSession(false, Session.CLIENT_ACKNOWLEDGE);
       
View Full Code Here

          assertNotNull(tm1_2);
         
          msgIds.add(tm1_2.getText());
        }
       
        tm1_2.acknowledge();
       
        cons1_2.close();
       
       
        //Two on node 2
View Full Code Here

          assertNotNull(tm2_1);
         
          msgIds.add(tm2_1.getText());
        }
       
        tm2_1.acknowledge();
       
        cons2_1.close();
       
        Session sess2_2 = conn2.createSession(false, Session.CLIENT_ACKNOWLEDGE);
       
View Full Code Here

          assertNotNull(tm2_2);
         
          msgIds.add(tm2_2.getText());
        }
       
        tm2_2.acknowledge();
       
        cons2_2.close();
       
        assertEquals(numMessages, msgIds.size());
       
View Full Code Here

         TextMessage rm = (TextMessage)cons1.receive(5000);
        
         log.info("message num sucked: " + msgs.size());
         while (rm != null)
         {
            rm.acknowledge();
            log.info("message sucked: " + rm + " text=" + rm.getText());
            msgs.put(rm.getText(), rm);
            rm = (TextMessage)cons1.receive(5000);
         }
        
View Full Code Here

               {
                  log.trace("Expected a but got " + tm.getText());
                  failed = true;
                  latch.release();
               }    
               tm.acknowledge();
               assertRemainingMessages(2);
               sess.recover();
            }
            if (count == 5)
            {
View Full Code Here

               {
                  log.trace("Expected c but got " + tm.getText());
                  failed = true;
                  latch.release();
               }
               tm.acknowledge();
               assertRemainingMessages(0);
               latch.release();
            }
              
         }
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.