Package org.jboss.seam.cron.impl.asynchronous.exception

Examples of org.jboss.seam.cron.impl.asynchronous.exception.AsynchronousMethodInvocationException


            final String name = UUID.randomUUID().toString();
            JobDetail jobDetail = new JobDetail(name, ASYNC_JOB_GROUP, AsyncMethodInvocationJob.class);
            jobDetail.getJobDataMap().put(DELAYED_RESULT_SUPPORT, drs);
            scheduler.scheduleJob(jobDetail, TriggerUtils.makeImmediateTrigger(name, 0, 1));
        } catch (SchedulerException ex) {
            throw new AsynchronousMethodInvocationException("Error invoking method asynchronously", ex);
        }
        return drs;
    }
View Full Code Here


    public void execute(final FutureInvokerSupport resultCallable) {
        try {
            resultCallable.executeInvocationContext();
        } catch (Exception ex) {
            throw new AsynchronousMethodInvocationException("Error invoking method inside a QueuJ Job", ex);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.seam.cron.impl.asynchronous.exception.AsynchronousMethodInvocationException

Copyright © 2018 www.massapicom. 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.