Package org.jboss.messaging.core.message

Examples of org.jboss.messaging.core.message.SimpleMessageStore


         destinationJNDIMapper = new DestinationJNDIMapper(this);
         connFactoryJNDIMapper = new ConnectionFactoryJNDIMapper(this);
         connectionManager = new SimpleConnectionManager();
         connectorManager = new SimpleConnectorManager();
         memoryManager = new SimpleMemoryManager();
         messageStore = new SimpleMessageStore();
         txRepository =
            new TransactionRepository(persistenceManager, messageStore, transactionIDManager);
         messageCounterManager = new MessageCounterManager(queueStatsSamplePeriod);

         // Start the wired components
View Full Code Here


         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
                  true, true, true, false, 100);  
      pm.start();
           
      ms = new SimpleMessageStore();
      ms.start();
   }
View Full Code Here

         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
                  true, true, true, false, 100);     
      pm.start();
     
      ms = new SimpleMessageStore();
      ms.start();
     
      tr = new TransactionRepository(pm, ms, idm);

      tr.start();
View Full Code Here

         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
                  true, true, true, false, 100);    
      pm.start();
     
      ms = new SimpleMessageStore();
      ms.start();
     
      tr = new TransactionRepository(pm, ms, idm);
      tr.start();
View Full Code Here

      pm.start();
     
      IDManager idm = new IDManager("TRANSACTION_ID", 10, pm);
      idm.start();
     
      TransactionRepository tr = new TransactionRepository(pm, new SimpleMessageStore(), idm);
      tr.start();
     
      Transaction tx = tr.createTransaction();
     
      ((SimpleDelivery)delivery).acknowledge(tx);
View Full Code Here

      for (int i = 0; i < 150; i++)
      {
         prod.send(sess.createMessage());
      }
     
      SimpleMessageStore ms = (SimpleMessageStore)ServerManagement.getMessageStore();
     
      assertEquals(100, ms.messageIds().size());
     
      //50 Should be paged onto disk
     
      assertEquals(50, getReferenceIds().size());
     
      assertEquals(50, getMessageIds().size());
     
      //Now we close the consumer
     
      cons.close();
     
      assertEquals(0, ms.messageIds().size());
     
      assertEquals(0, getReferenceIds().size());
     
      assertEquals(0, getMessageIds().size());
     
View Full Code Here

      for (int i = 0; i < 150; i++)
      {
         prod.send(sess.createMessage());
      }
     
      SimpleMessageStore ms = (SimpleMessageStore)ServerManagement.getMessageStore();
     
      assertEquals(100, ms.messageIds().size());
     
      assertEquals(100, getReferenceIds().size());
     
      assertEquals(50, getMessageIds().size());
     
      //Now we close the consumers
     
      cons1.close();
      cons2.close();
     
      assertEquals(100, ms.messageIds().size());
     
      assertEquals(50, getReferenceIds().size());
     
      assertEquals(50, getMessageIds().size());
     
      sess.unsubscribe("sub1");
     
      assertEquals(0, ms.messageIds().size());
     
      assertEquals(0, getReferenceIds().size());
     
      assertEquals(0, getMessageIds().size());
     
View Full Code Here

      for (int i = 0; i < 150; i++)
      {
         prod.send(sess.createMessage());
      }
     
      SimpleMessageStore ms = (SimpleMessageStore)ServerManagement.getMessageStore();
     
      assertEquals(100, ms.messageIds().size());
     
      assertEquals(50, getReferenceIds().size());
     
      assertEquals(50, getMessageIds().size());
     
      //Now we close the connection
     
      conn.close();
     
      assertEquals(0, ms.messageIds().size());
     
      assertEquals(0, getReferenceIds().size());
     
      assertEquals(0, getMessageIds().size());
     
View Full Code Here

      for (int i = 0; i < 150; i++)
      {
         prod.send(sess.createMessage());
      }
     
      SimpleMessageStore ms = (SimpleMessageStore)ServerManagement.getMessageStore();
     
      assertEquals(100, ms.messageIds().size());
     
      assertEquals(100, getReferenceIds().size());
     
      assertEquals(50, getMessageIds().size());
     
      //Now we close the connection
     
      conn.close();
     
      assertEquals(0, ms.messageIds().size());
     
      assertEquals(0, getReferenceIds().size());
     
      assertEquals(0, getMessageIds().size());
     
View Full Code Here

   public void setUp() throws Exception
   {
      super.setUp();

      ms = new SimpleMessageStore();

      log.debug("setup done");
   }
View Full Code Here

TOP

Related Classes of org.jboss.messaging.core.message.SimpleMessageStore

Copyright © 2018 www.massapicom. 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.