Package org.apache.servicemix.quartz

Examples of org.apache.servicemix.quartz.QuartzComponent


        try {
            String componentName = (String) context.getJobDetail().getJobDataMap().get(COMPONENT_NAME);
            if (componentName == null) {
                throw new JobExecutionException("No property '" + COMPONENT_NAME + "' defined. Bad job data map");
            }
            QuartzComponent component = (QuartzComponent) context.getScheduler().getContext().get(componentName);
            if (component == null) {
                throw new JobExecutionException("No quartz JBI component available for key: " + componentName + "."
                        + " Bad job data map");
            }
            String endpointName = (String) context.getJobDetail().getJobDataMap().get(ENDPOINT_NAME);
            if (endpointName == null) {
                throw new JobExecutionException("No property '" + ENDPOINT_NAME + "' defined. Bad job data map");
            }
            QuartzEndpoint endpoint = (QuartzEndpoint) component.getRegistry().getEndpoint(endpointName);
            if (endpoint == null) {
                throw new JobExecutionException("No quartz JBI endpoint available for key: " + endpointName + "."
                        + " Bad job data map");
            }
            endpoint.onJobExecute(context);
View Full Code Here


        try {
            String componentName = (String) context.getJobDetail().getJobDataMap().get(COMPONENT_NAME);
            if (componentName == null) {
                throw new JobExecutionException("No property '" + COMPONENT_NAME + "' defined. Bad job data map");
            }
            QuartzComponent component = (QuartzComponent) context.getScheduler().getContext().get(componentName);
            if (component == null) {
                throw new JobExecutionException("No quartz JBI component available for key: " + componentName + ". Bad job data map");
            }
            String endpointName = (String) context.getJobDetail().getJobDataMap().get(ENDPOINT_NAME);
            if (endpointName == null) {
                throw new JobExecutionException("No property '" + ENDPOINT_NAME + "' defined. Bad job data map");
            }
            QuartzEndpoint endpoint = (QuartzEndpoint) component.getRegistry().getEndpoint(endpointName);
            if (endpoint == null) {
                throw new JobExecutionException("No quartz JBI endpoint available for key: " + endpointName + ". Bad job data map");
            }
            endpoint.onJobExecute(context);
        } catch (SchedulerException e) {
View Full Code Here

TOP

Related Classes of org.apache.servicemix.quartz.QuartzComponent

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.