Examples of execute()


Examples of org.mule.execution.ErrorHandlingExecutionTemplate.execute()

                reqMsg.setProperty(CxfConstants.INBOUND_OPERATION, bop.getOperationInfo().getName(), PropertyScope.INVOCATION);
                reqMsg.setProperty(CxfConstants.INBOUND_SERVICE, svc.getName(), PropertyScope.INVOCATION);
            }

            ErrorHandlingExecutionTemplate errorHandlingExecutionTemplate = ErrorHandlingExecutionTemplate.createErrorHandlingExecutionTemplate(event.getMuleContext(), event.getFlowConstruct().getExceptionListener());
            responseEvent = errorHandlingExecutionTemplate.execute(new ExecutionCallback<MuleEvent>()
            {
                @Override
                public MuleEvent process() throws Exception
                {
                    return cxfMmessageProcessor.processNext(event);
View Full Code Here

Examples of org.mule.execution.MessageProcessorExecutionTemplate.execute()

            MessageProcessorExecutionTemplate executionTemplateToUse = (!(next instanceof MessageProcessorChain)) ? messageProcessorExecutorWithNotifications : messageProcessorExecutorWithoutNotifications;

            try
            {
                return executionTemplateToUse.execute(next, event);
            }
            catch (MessagingException e)
            {
                event.getSession().setValid(false);
                throw e;
View Full Code Here

Examples of org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute()

                    }
                };

                try
                {
                    executionTemplate.execute(processingCallback);
                }
                catch (MessagingException e)
                {
                    //Already handled by processing template
                }
View Full Code Here

Examples of org.mule.module.db.internal.domain.executor.BulkExecutor.execute()

        validateQueryType(query.getQueryTemplate());

        List<List<QueryParamValue>> paramValues = resolveParamSets(muleEvent, query);

        BulkExecutor bulkUpdateExecutor = bulkUpdateExecutorFactory.create();
        return bulkUpdateExecutor.execute(connection, query, paramValues);
    }

    private List<List<QueryParamValue>> resolveParamSets(MuleEvent muleEvent, Query query)
    {
        Object payload;
View Full Code Here

Examples of org.mule.module.db.internal.domain.executor.QueryExecutor.execute()

    @Override
    protected Object doExecuteQuery(DbConnection connection, Query query) throws SQLException
    {
        QueryExecutor queryExecutor = queryExecutorFactory.create();
        return queryExecutor.execute(connection, query);
    }
}
View Full Code Here

Examples of org.mule.module.db.internal.domain.executor.SelectExecutor.execute()

        QueryTemplate queryTemplate = new QueryTemplate(sqlText, QueryType.SELECT, Collections.<QueryParam>emptyList());
        Mockito.when(statementFactory.create(connection, queryTemplate)).thenReturn(statement);

        Query query = new Query(queryTemplate, null);
        Object result = selectExecutor.execute(connection, query);

        assertEquals(processedResult, result);
    }
}
View Full Code Here

Examples of org.mule.module.db.internal.domain.executor.UpdateExecutor.execute()

        QueryTemplate queryTemplate = new QueryTemplate(sqlText, QueryType.UPDATE, Collections.<QueryParam>emptyList());
        Mockito.when(statementFactory.create(connection, queryTemplate)).thenReturn(statement);
        Query query = new Query(queryTemplate, null);

        Object result = updateExecutor.execute(connection, query);

        assertEquals(1, result);
    }
}
View Full Code Here

Examples of org.mule.module.launcher.artifact.ShutdownListener.execute()

        verify(classLoader).addShutdownListener(captor.capture());
        ShutdownListener listener = captor.getValue();
        assertThat(listener, notNullValue());

        assertThat(context, is(selector.getContext(EMPTY, classLoader, true)));
        listener.execute();

        assertThat(context, not(selector.getContext("", classLoader, true)));
    }

    @Test
View Full Code Here

Examples of org.mule.retry.async.AsynchronousRetryTemplate.execute()

            {
                incrementProcessAttemptCountOrRemoveFromStore(eventStoreKey);
            }
        });

        retryPolicyTemplate.execute(callback, muleContext.getWorkManager());
    }

    private EventStoreKey storeEvent(final MuleEvent event) throws ObjectStoreException
    {
        MuleMessage message = event.getMessage();
View Full Code Here

Examples of org.mule.transaction.TransactionTemplate.execute()

            }
        };

        try
        {
            List results = (List) tt.execute(cb);
            handleResults(results);
        }
        finally
        {
            messages.clear();
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.