public int enQueueSynchronously(String applicationName, String user, String mail, String sessionID, String application, String module, String keyword1, String keyword2, String keyword3, Map<String, String> parameters) { return jm.enqueueSync(applicationName, user, mail, sessionID, application, module, keyword1, keyword2, keyword3, parameters); }
int failId = jm.enqueueSync(jm.applicationName(), jm.userName(), null, null, null, null, null, null, null, prms); int successId = jm.enqueueSync(jm.applicationName(), jm.userName(), null, null, null, null, null, null, null, prms);
@Override public void run() { System.out.println("Spring job 2"); if (parameters == null || parameters.size() == 0) { throw new RuntimeException("parameters were not set"); } if (s1 == null) { throw new RuntimeException("services were not set"); } s1.getInt(); if (jmp == null) { throw new RuntimeException("JobManager was not set"); } JobManager jm = jmp.getObject(); System.out.println("Job instance ID is " + jm.jobInstanceID()); int instanceId = jm.jobInstanceID(); jm.enqueueSync("Job1", jm.userName(), null, null, null, jm.module(), null, null, null, jm.parameters()); if (instanceId != jmp.getObject().jobInstanceID()) { throw new RuntimeException("The job manager was not really thread local"); } } }
prms.put("rrr", "3rd run"); System.out.println("creating a new sync job instance request"); jm.enqueueSync(jm.applicationName(), null, null, null, jm.application(), jm.module(), null, null, null, prms); System.out.println("New request is number " + i + " and should be done now"); jm.sendProgress(100);
prms.put("rrr", "3rd run"); System.out.println("creating a new sync job instance request"); jm.enqueueSync(jm.applicationName(), null, null, null, jm.application(), jm.module(), null, null, null, prms); System.out.println("New request is number " + i + " and should be done now"); jm.sendProgress(100);
prms.put("rrr", "3rd run"); System.out.println("creating a new sync job instance request"); jm.enqueueSync(jm.applicationName(), null, null, null, jm.application(), jm.module(), null, null, null, prms); System.out.println("New request is number " + i + " and should be done now"); jm.sendProgress(100);
prms.put("rrr", "3rd run"); System.out.println("creating a new sync job instance request"); jm.enqueueSync(jm.applicationName(), null, null, null, jm.application(), jm.module(), null, null, null, prms); System.out.println("New request is number " + i + " and should be done now"); jm.sendProgress(100);
prms.put("rrr", "3rd run"); System.out.println("creating a new sync job instance request"); jm.enqueueSync(jm.applicationName(), null, null, null, jm.application(), jm.module(), null, null, null, prms); System.out.println("New request is number " + i + " and should be done now");
return this.api.enqueueSync((String) args[0], (String) args[1], (String) args[2], (String) args[3], (String) args[4], (String) args[5], (String) args[6], (String) args[7], (String) args[8], (Map<String, String>) args[9]);