Examples of JDBCPersistenceManager


Examples of org.jboss.messaging.core.impl.JDBCPersistenceManager

   }

   protected JDBCPersistenceManager createPM2(boolean batch, boolean useBinaryStream,
                                             boolean trailingByte, int maxParams) throws Throwable
   {
      JDBCPersistenceManager p =
         new FakeJDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
                  true, batch, useBinaryStream, trailingByte, maxParams, !sc.getDatabaseName().equals("oracle") && !sc.getDatabaseName().equals("db2"),
                  !sc.getDatabaseName().equals("db2"));
      ((JDBCPersistenceManager)p).injectNodeID(1);
      p.start();
      return p;
   }
View Full Code Here

Examples of org.jboss.messaging.core.impl.JDBCPersistenceManager

      super.setUp();
      sc = new ServiceContainer("all,-remoting,-security");
      sc.start();

      pm =
         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
                  true, true, true, false, 100, !sc.getDatabaseName().equals("oracle") && !sc.getDatabaseName().equals("db2"), !sc.getDatabaseName().equals("db2"));  
      ((JDBCPersistenceManager)pm).injectNodeID(1);
      pm.start();
           
View Full Code Here

Examples of org.jboss.messaging.core.impl.JDBCPersistenceManager

      pm.stop();
      tr.stop();
      ms.stop();

      pm =
         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
                  true, true, true, false, 100, !sc.getDatabaseName().equals("oracle") && !sc.getDatabaseName().equals("db2"),
                  !sc.getDatabaseName().equals("db2"));
      ((JDBCPersistenceManager)pm).injectNodeID(1);
      pm.start();
View Full Code Here

Examples of org.jboss.messaging.core.impl.JDBCPersistenceManager

      pm.stop();
      tr.stop();
      ms.stop();

      pm =
         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
                  true, true, true, false, 100, !sc.getDatabaseName().equals("oracle") && !sc.getDatabaseName().equals("db2"),
                  !sc.getDatabaseName().equals("db2"));
      ((JDBCPersistenceManager)pm).injectNodeID(1);
      pm.start();
View Full Code Here

Examples of org.jboss.messaging.core.impl.JDBCPersistenceManager

      pm.stop();
      tr.stop();
      ms.stop();

      pm =
         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
                  true, true, true, false, 100, !sc.getDatabaseName().equals("oracle") && !sc.getDatabaseName().equals("db2"),
                  !sc.getDatabaseName().equals("db2"));
      ((JDBCPersistenceManager)pm).injectNodeID(1);
      pm.start();
View Full Code Here

Examples of org.jboss.messaging.core.plugin.JDBCPersistenceManager

      super.tearDown();
   }
      
   protected JDBCPersistenceManager createPM(boolean batch, int maxParams) throws Throwable
   {     
      JDBCPersistenceManager p =
         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
                  true, batch, true, false, maxParams);     
      p.start();
      return p;
   }
View Full Code Here

Examples of org.jboss.messaging.core.plugin.JDBCPersistenceManager

      super.setUp();
      sc = new ServiceContainer("all,-remoting,-security");
      sc.start();

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

Examples of org.jboss.messaging.core.plugin.JDBCPersistenceManager

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

Examples of org.jboss.messaging.core.plugin.JDBCPersistenceManager

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

Examples of org.jboss.messaging.core.plugin.JDBCPersistenceManager

     
      ServiceContainer sc = new ServiceContainer("all,-remoting,-security");
      sc.start();
     
      PersistenceManager pm =
         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
                  true, true, true, false, 100);
      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);
     
      assertTrue(delivery.isDone());
     
      pm.stop();
      tr.stop();
     
      sc.stop();
   }
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.