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.serviceproxies;
Responsible for implementing policy to put message into threadpool for execution appropriately. Could make Spring and overridable service.

Kuali Rice Team (
public class MessageSender {
    public static void sendMessage(PersistedMessageBO messagethrows Exception {
        if (!Boolean.valueOf(ConfigContext.getCurrentContextConfig().getProperty(..))) {
            if (ConfigContext.getCurrentContextConfig().getObject(.) != null
                    || ConfigContext.getCurrentContextConfig().getObject(.) != null) {
                if (TransactionSynchronizationManager.isSynchronizationActive()) {
                    TransactionSynchronizationManager.registerSynchronization(new MessageSendingTransactionSynchronization(
                } else {
                    KSBServiceLocator.getThreadPool().execute(new MessageServiceInvoker(message));
            } else {
                KSBServiceLocator.getThreadPool().execute(new MessageServiceInvoker(message));
New to GrepCode? Check out our FAQ X