Package br.com.procempa.modus.synchronizer

Examples of br.com.procempa.modus.synchronizer.SynchronizerService.start()


  public void testSynchronizeInsert() {
    SynchronizerService sinc = new SynchronizerService();
   
    try {
      sinc.create();
      sinc.start();
      Thread.sleep(12000);
      insertMain();
      insertLocal();
      Thread.sleep(10000);
      sinc.stop();
View Full Code Here


   
    try {
      PersistentAccess pa = PersistentAccessFactory.getInstance();

      sinc.create();
      sinc.start();
      Thread.sleep(12000);
     
      Curso c = (Curso) pa.search("FROM Curso").get(0);
      c.setEmenta("atualizado pelo local: " + System.currentTimeMillis());
      pa.persist(c);
View Full Code Here

   
    try {
      PersistentAccess mainPa = PersistentAccessFactory.getInstanceMain();

      sinc.create();
      sinc.start();
      Thread.sleep(12000);
     
      Curso c = (Curso) mainPa.search("FROM Curso").get(0);
      c.setEmenta("atualizado pelo main: " + System.currentTimeMillis());
      mainPa.persist(c);
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.