Package javax.jms

Examples of javax.jms.TextMessage.acknowledge()


         if (transactional)
         {
            sess1.commit();
         } else
         {
            tm.acknowledge();
         }

         log.info("acked");

         sess1.close();
View Full Code Here


         if (transactional)
         {
            sess1.commit();
         } else
         {
            tm.acknowledge();
         }

         log.info("acked");

         sess1.close();
View Full Code Here

         if (transactional)
         {
            sess3.commit();
         } else
         {
            tm.acknowledge();
         }

         log.info("acked");

         sess3.close();
View Full Code Here

         if (transactional)
         {
            sess1.commit();
         } else
         {
            tm.acknowledge();
         }

         log.info("acked");

         sess1.close();
View Full Code Here

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

         //Now should be able to acknowledge them

         tm.acknowledge();

         //Now check there are no more messages there
         sess.close();

         checkEmpty(queue[finalServerID], finalServerID);
View Full Code Here

         // 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

         // 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(tm);
        
         assertEquals("3", tm.getText());
         assertEquals("VALUE2", tm.getStringProperty("PROP2"));
        
         tm.acknowledge();
        
         conn.close(); // this should close the consumer, producer and session associated with the connection

        
         // Reopen the connection and consumer
View Full Code Here

         tm = (TextMessage)msgConsumer.receive(5000);
         assertEquals("6", tm.getText());
         assertEquals("VALUE1", tm.getStringProperty("PROP1"));
         assertEquals("VALUE2", tm.getStringProperty("PROP2"));
        
         tm.acknowledge();
        
      }
      finally
      {
         if (conn != null)
View Full Code Here

         ProxyAssertSupport.assertEquals("CLACK", m.getText());

         // make sure the message is still in "delivering" state
         assertRemainingMessages(1);

         m.acknowledge();

         assertRemainingMessages(0);
      }
      finally
      {
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.