Package br.com.procempa.modus.synchronizer

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


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


    SynchronizerService sinc = new SynchronizerService();
   
    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());
View Full Code Here

    SynchronizerService sinc = new SynchronizerService();
   
    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());
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.