Examples of routeMessage()


Examples of org.mule.api.transport.MessageReceiver.routeMessage()

    @Test
    public void routeMessageOneWayReturnsNull() throws MuleException
    {
        MessageReceiver receiver = createMessageReciever(MessageExchangePattern.ONE_WAY);

        assertNull(receiver.routeMessage(createRequestMessage()));
    }

    @Test
    public void routeMessageRequestResponseReturnsEvent() throws MuleException
    {
View Full Code Here

Examples of org.mule.api.transport.MessageReceiver.routeMessage()

    public void routeMessageRequestResponseReturnsEvent() throws MuleException
    {
        MessageReceiver receiver = createMessageReciever(MessageExchangePattern.REQUEST_RESPONSE);
        MuleMessage request = createRequestMessage();

        assertEquals(request, receiver.routeMessage(request).getMessage());
    }

    protected MuleMessage createRequestMessage()
    {
        MuleMessage request = Mockito.mock(MuleMessage.class);
View Full Code Here

Examples of org.mule.api.transport.MessageReceiver.routeMessage()

                    {
                        @Override
                        public MuleEvent process() throws Exception
                        {
                            preRouteMessage(message);
                            return receiver.routeMessage(message);
                        }
                    });
                }
                catch (MuleException e)
                {
View Full Code Here

Examples of org.mule.transport.AbstractMessageReceiver.routeMessage()

                        result = (MuleMessage) ((ThreadSafeAccess) result).newThreadCopy();

                        //Add the context properties to the message.
                        result.addProperties(jobDataMap, PropertyScope.INVOCATION);

                        receiver.routeMessage(result);
                    }
                    // nowhere to return
                    return null;
                }
            };
View Full Code Here

Examples of org.mule.transport.AbstractMessageReceiver.routeMessage()

           
            MuleMessage msg = receiver.createMuleMessage(payload, receiver.getEndpoint().getEncoding());
            // If the job is stateful users can store state in this map and have it available for the next job trigger
            msg.setInvocationProperty(
                    QuartzConnector.PROPERTY_JOB_DATA, jobExecutionContext.getJobDetail().getJobDataMap());
            receiver.routeMessage(msg);
        }
        catch (Exception e)
        {
            muleContext.getExceptionListener().handleException(e);
        }
View Full Code Here

Examples of org.mule.transport.AbstractMessageReceiver.routeMessage()

           
            MuleMessage msg = receiver.createMuleMessage(payload, receiver.getEndpoint().getEncoding());
            // If the job is stateful users can store state in this map and have it available for the next job trigger
            msg.setInvocationProperty(
                    QuartzConnector.PROPERTY_JOB_DATA, jobExecutionContext.getJobDetail().getJobDataMap());
            receiver.routeMessage(msg);
        }
        catch (Exception e)
        {
            receiver.getFlowConstruct().getExceptionListener().handleException(e, ((MessagingException) e).getEvent());
        }
View Full Code Here

Examples of org.mule.transport.AbstractMessageReceiver.routeMessage()

                        result = (MuleMessage) ((ThreadSafeAccess) result).newThreadCopy();

                        //Add the context properties to the message.
                        result.addProperties(jobDataMap, PropertyScope.INVOCATION);

                        receiver.routeMessage(result);
                    }
                    // nowhere to return
                    return null;
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.