e.printStackTrace();
}
}
public void testSynchronizeUpdateMain() {
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());
mainPa.persist(c);
Thread.sleep(10000);
sinc.stop();
} catch (Exception e) {
e.printStackTrace();
}
}