commonj.work.WorkException Java Examples
The following examples show how to use
commonj.work.WorkException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommonJWorkManagerExecutorService.java From camunda-bpm-platform with Apache License 2.0 | 6 votes |
protected boolean scheduleLongRunning(Runnable acquisitionRunnable) { // initialize the workManager here, because we have access to the initial context // of the calling thread (application), so the jndi lookup is working -> see JCA 1.6 specification if(workManager == null) { workManager = lookupWorkMananger(); } try { workManager.schedule(new CommonjDeamonWorkRunnableAdapter(acquisitionRunnable)); return true; } catch (WorkException e) { logger.log(Level.WARNING, "Could not schedule Job Acquisition Runnable: "+e.getMessage(), e); return false; } }
Example #2
Source File: TalendWorkListener.java From Knowage-Server with GNU Affero General Public License v3.0 | 5 votes |
public void workCompleted(WorkEvent event) { WorkException workException; TalendWork talendWork; logger.info("IN"); try { workException = event.getException(); if (workException != null) { logger.error(workException); } talendWork = (TalendWork) event.getWorkItem().getResult(); if (workException != null || !talendWork.isCompleteWithoutError()) { if(auditServiceProxy != null) { auditServiceProxy.notifyServiceErrorEvent("An error occurred while job execution"); } else { logger.warn("Impossible to log START-EVENT because the audit proxy has not been instatiated properly"); } } else { if(auditServiceProxy != null) { auditServiceProxy.notifyServiceEndEvent(); } else { logger.warn("Impossible to log START-EVENT because the audit proxy has not been instatiated properly"); } } } catch (Throwable t) { throw new RuntimeException("An error occurred while handling process completed event"); } finally { logger.debug("OUT"); } }
Example #3
Source File: WorkManagerTaskExecutor.java From spring-analysis-note with MIT License | 4 votes |
@Override public WorkItem schedule(Work work) throws WorkException, IllegalArgumentException { return obtainWorkManager().schedule(work); }
Example #4
Source File: WorkManagerTaskExecutor.java From spring-analysis-note with MIT License | 4 votes |
@Override public WorkItem schedule(Work work, WorkListener workListener) throws WorkException { return obtainWorkManager().schedule(work, workListener); }
Example #5
Source File: WorkManagerTaskExecutor.java From java-technology-stack with MIT License | 4 votes |
@Override public WorkItem schedule(Work work) throws WorkException, IllegalArgumentException { return obtainWorkManager().schedule(work); }
Example #6
Source File: WorkManagerTaskExecutor.java From java-technology-stack with MIT License | 4 votes |
@Override public WorkItem schedule(Work work, WorkListener workListener) throws WorkException { return obtainWorkManager().schedule(work, workListener); }
Example #7
Source File: WorkManagerTaskExecutor.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public WorkItem schedule(Work work) throws WorkException, IllegalArgumentException { return this.workManager.schedule(work); }
Example #8
Source File: WorkManagerTaskExecutor.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public WorkItem schedule(Work work, WorkListener workListener) throws WorkException { return this.workManager.schedule(work, workListener); }
Example #9
Source File: ManageDatasets.java From Knowage-Server with GNU Affero General Public License v3.0 | 4 votes |
protected void datasetInsert(IDataSetDAO dsDao, Locale locale) throws NamingException, WorkException, InterruptedException { IDataSet ds = getGuiGenericDatasetToInsert(); datasetInsert(ds, dsDao, locale); calculateDomainValues(ds); }
Example #10
Source File: ManageDatasets.java From Knowage-Server with GNU Affero General Public License v3.0 | 4 votes |
private void calculateDomainValues(IDataSet ds) throws NamingException, WorkException, InterruptedException { DatasetManagementAPI datasetManagementAPI = new DatasetManagementAPI((UserProfile) profile); datasetManagementAPI.calculateDomainValues(ds); }
Example #11
Source File: ManageDatasets.java From Knowage-Server with GNU Affero General Public License v3.0 | 4 votes |
private void clearDomainValues(IDataSet ds) throws NamingException, WorkException { DatasetManagementAPI datasetManagementAPI = new DatasetManagementAPI((UserProfile) profile); datasetManagementAPI.clearDomainValues(ds); }
Example #12
Source File: WorkManagerTaskExecutor.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public WorkItem schedule(Work work) throws WorkException, IllegalArgumentException { return this.workManager.schedule(work); }
Example #13
Source File: WorkManagerTaskExecutor.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public WorkItem schedule(Work work, WorkListener workListener) throws WorkException { return this.workManager.schedule(work, workListener); }