Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2012 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.kuali.rice.ksb.messaging.quartz;
Job saves a org.kuali.rice.ksb.messaging.PersistedMessageBO to the message queue in the state of 'R' and then puts into a org.kuali.rice.ksb.messaging.MessageServiceInvoker for execution in org.kuali.rice.ksb.messaging.threadpool.KSBThreadPool.

Kuali Rice Team (
public class MessageServiceExecutorJob implements JobSerializable {
    private static final Logger LOG = Logger.getLogger(MessageServiceExecutorJob.class);
    private static final long serialVersionUID = 6702139047380618522L;
    public static final String MESSAGE_KEY = "message";
    public void execute(JobExecutionContext jecthrows JobExecutionException {
	try {
	    KSBServiceLocator.getThreadPool().execute(new MessageServiceInvoker(message));
catch (Throwable t) {
	    .error("Caught throwable attempting to process message in exception messaging queue."t);
	    throw new JobExecutionException(new Exception(t));
New to GrepCode? Check out our FAQ X