Package org.mule.api

Examples of org.mule.api.MessagingException


            {
                throw (MuleException) e;
            }
            else
            {
                throw new MessagingException(event, e, this);
            }
        }
    }
View Full Code Here


        {
            throw messagingException;
        }
        catch (Throwable ex)
        {
            throw new MessagingException(event,ex,messageProcessor);
        }
    }
View Full Code Here

        {
            TransactionCoordination.getInstance().rollbackCurrentTransaction();
        }
        if (ex instanceof MessagingException)
        {
            MessagingException messagingException = (MessagingException) ex;
            messagingException.setCauseRollback(true);
        }
    }
View Full Code Here

            fireNotification(notificationManager, event.getFlowConstruct(), event, messageProcessor,
                             null, MessageProcessorNotification.MESSAGE_PROCESSOR_PRE_INVOKE);
        }

        MuleEvent result = null;
        MessagingException exceptionThrown = null;
        try
        {
            if (next == null)
            {
                result = messageProcessor.process(event);
            }
            else
            {
                result = next.execute(messageProcessor, event);
            }
        }
        catch (MessagingException e)
        {
            exceptionThrown = e;
            throw e;
        }
        catch (MuleException e)
        {
            exceptionThrown = new MessagingException(event, e, messageProcessor);
            throw exceptionThrown;
        }
        finally
        {
            if (fireNotification)
View Full Code Here

                muleContext.getNotificationManager().fireNotification(
                        new PipelineMessageNotification(AbstractPipeline.this, event,
                                PipelineMessageNotification.PROCESS_START));

                MuleEvent result = null;
                MessagingException exceptionThrown = null;
                try
                {
                    return processNext(event);
                }
                catch (MessagingException me)
View Full Code Here

    @Test
    public void exceptionCausedBy() throws Exception
    {
        MuleMessage message = new DefaultMuleMessage("", muleContext);
        MessagingException me = new MessagingException(CoreMessages.createStaticMessage(""),
            new DefaultMuleEvent(message, MessageExchangePattern.ONE_WAY, getTestService()),
            new IllegalAccessException());
        message.setExceptionPayload(new DefaultExceptionPayload(me));
        assertTrue((Boolean) evaluate("exception.causedBy(java.lang.IllegalAccessException)", message));
    }
View Full Code Here

                        Thread.sleep(500);
                    }
                }
                catch (InterruptedException e)
                {
                    throw new MessagingException(
                        CoreMessages.interruptedWaitingForPaused(getStartableName(startable)), event, e, this);
                }
            }
            return processNext(event);
        }
View Full Code Here

            }
            return event;
        }
        catch (Exception e)
        {
            MessagingException messagingException;
            if (e instanceof MessagingException)
            {
                messagingException = (MessagingException) e;
            }
            else
            {
                messagingException = new MessagingException(event, e);
            }
            try
            {
                logger.error("Exception during exception strategy execution");
                logException(e);
View Full Code Here

                        Thread.sleep(500);
                    }
                }
                catch (InterruptedException e)
                {
                    throw new MessagingException(
                        CoreMessages.interruptedWaitingForPaused(getStartableName(startable)), event, e, this);
                }
            }
            return processNext(event);
        }
View Full Code Here

            MuleEvent event = service.sendEvent(eventToSend);
            return event == null || VoidMuleEvent.getInstance().equals(event) ? null : event.getMessage();
        }
        else
        {
            throw new MessagingException(
                CoreMessages.createStaticMessage("FlowConstuct is not a 'Service', MuleEventContext cannot send this message"),
                event);
        }
    }
View Full Code Here

TOP

Related Classes of org.mule.api.MessagingException

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.