Package org.apache.camel.bam.processor

Examples of org.apache.camel.bam.processor.ActivityMonitorEngine


        ObjectHelper.notNull(getJpaTemplate(), "jpaTemplate", this);
        ObjectHelper.notNull(getTransactionTemplate(), "transactionTemplate", this);

        // lets add the monitoring service - should there be an easier way??
        if (engine == null) {
            engine = new ActivityMonitorEngine(getJpaTemplate(), getTransactionTemplate(), getProcessRules());
        }
        CamelContext camelContext = getContext();
        if (camelContext instanceof DefaultCamelContext) {
            DefaultCamelContext defaultCamelContext = (DefaultCamelContext) camelContext;
            defaultCamelContext.addService(engine);
View Full Code Here


        ObjectHelper.notNull(entityManagerFactory, "entityManagerFactory", this);
        ObjectHelper.notNull(getTransactionTemplate(), "transactionTemplate", this);

        // add the monitoring service - should there be an easier way??
        if (engine == null) {
            engine = new ActivityMonitorEngine(entityManagerFactory, getTransactionTemplate(), getProcessRules());
        }
        CamelContext camelContext = getContext();
        if (camelContext instanceof DefaultCamelContext) {
            DefaultCamelContext defaultCamelContext = (DefaultCamelContext) camelContext;
            defaultCamelContext.addService(engine);
View Full Code Here

        ObjectHelper.notNull(getJpaTemplate(), "jpaTemplate", this);
        ObjectHelper.notNull(getTransactionTemplate(), "transactionTemplate", this);

        // add the monitoring service - should there be an easier way??
        if (engine == null) {
            engine = new ActivityMonitorEngine(getJpaTemplate(), getTransactionTemplate(), getProcessRules());
        }
        CamelContext camelContext = getContext();
        if (camelContext instanceof DefaultCamelContext) {
            DefaultCamelContext defaultCamelContext = (DefaultCamelContext) camelContext;
            defaultCamelContext.addService(engine);
View Full Code Here

    // -------------------------------------------------------------------------
    protected void populateRoutes(List<Route> routes) throws Exception {

        // lets add the monitoring service - should there be an easier way??
        if (engine == null) {
            engine = new ActivityMonitorEngine(getJpaTemplate(), getTransactionTemplate(), getProcessRules());
        }
        CamelContext camelContext = getContext();
        if (camelContext instanceof DefaultCamelContext) {
            DefaultCamelContext defaultCamelContext = (DefaultCamelContext) camelContext;
            defaultCamelContext.addService(engine);
View Full Code Here

TOP

Related Classes of org.apache.camel.bam.processor.ActivityMonitorEngine

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.