Package org.apache.camel.impl

Examples of org.apache.camel.impl.ExplicitCamelContextNameStrategy


    }

    @SuppressWarnings("unused")
    protected void setupCamelContext(final BundleContext bundleContext, final String camelContextId) throws Exception {
        // Set up CamelContext
        context.setNameStrategy(new ExplicitCamelContextNameStrategy(camelContextId));
        context.setUseMDCLogging(true);
        context.setUseBreadcrumb(true);

        // Add routes
        for (RoutesBuilder route : getRouteBuilders()) {
View Full Code Here


                        if (context.getNameStrategy() instanceof DefaultCamelContextNameStrategy) {
                            // use this as the fixed name
                            LOG.warn("Reassigned auto assigned name on CamelContext from: " + context.getName()
                                    + " to: " + name + " due to clash with existing name already registered in MBeanServer.");
                            // now set the fixed name we are using onwards
                            context.setNameStrategy(new ExplicitCamelContextNameStrategy(name));
                        } else {
                            LOG.warn("This CamelContext(" + context.getName() + ") will be registered using the name: " + managementName
                                + " due to clash with an existing name already registered in MBeanServer.");
                        }
                    }
View Full Code Here

                        if (context.getNameStrategy() instanceof DefaultCamelContextNameStrategy) {
                            // use this as the fixed name
                            LOG.warn("Reassigned auto assigned name on CamelContext from: " + context.getName()
                                    + " to: " + name + " due to clash with existing name already registered in MBeanServer.");
                            // now set the fixed name we are using onwards
                            context.setNameStrategy(new ExplicitCamelContextNameStrategy(name));
                        } else {
                            LOG.warn("This CamelContext(" + context.getName() + ") will be registered using the name: " + managementName
                                + " due to clash with an existing name already registered in MBeanServer.");
                        }
                    }
View Full Code Here

                        if (context.getNameStrategy() instanceof DefaultCamelContextNameStrategy) {
                            // use this as the fixed name
                            LOG.warn("Reassigned auto assigned name on CamelContext from: " + context.getName()
                                    + " to: " + name + " due to clash with existing name already registered in MBeanServer.");
                            // now set the fixed name we are using onwards
                            context.setNameStrategy(new ExplicitCamelContextNameStrategy(name));
                        } else {
                            LOG.warn("This CamelContext(" + context.getName() + ") will be registered using the name: " + managementName
                                + " due to clash with an existing name already registered in MBeanServer.");
                        }
                    }
View Full Code Here

                        if (context.getNameStrategy() instanceof DefaultCamelContextNameStrategy) {
                            // use this as the fixed name
                            LOG.warn("Reassigned auto assigned name on CamelContext from: " + context.getName()
                                    + " to: " + name + " due to clash with existing name already registered in MBeanServer.");
                            // now set the fixed name we are using onwards
                            context.setNameStrategy(new ExplicitCamelContextNameStrategy(name));
                        } else {
                            LOG.warn("This CamelContext(" + context.getName() + ") will be registered using the name: " + managementName
                                + " due to clash with an existing name already registered in MBeanServer.");
                        }
                    }
View Full Code Here

                        if (context.getNameStrategy() instanceof DefaultCamelContextNameStrategy) {
                            // use this as the fixed name
                            LOG.warn("Reassigned auto assigned name on CamelContext from: " + context.getName()
                                    + " to: " + name + " due to clash with existing name already registered in MBeanServer.");
                            // now set the fixed name we are using onwards
                            context.setNameStrategy(new ExplicitCamelContextNameStrategy(name));
                        } else {
                            LOG.warn("This CamelContext(" + context.getName() + ") will be registered using the name: " + managementName
                                + " due to clash with an existing name already registered in MBeanServer.");
                        }
                    }
View Full Code Here

                        if (context.getNameStrategy() instanceof DefaultCamelContextNameStrategy) {
                            // use this as the fixed name
                            LOG.warn("Reassigned auto assigned name on CamelContext from: " + context.getName()
                                    + " to: " + name + " due to clash with existing name already registered in MBeanServer.");
                            // now set the fixed name we are using onwards
                            context.setNameStrategy(new ExplicitCamelContextNameStrategy(name));
                        } else {
                            LOG.warn("This CamelContext(" + context.getName() + ") will be registered using the name: " + managementName
                                + " due to clash with an existing name already registered in MBeanServer.");
                        }
                    }
View Full Code Here

                        if (context.getNameStrategy() instanceof DefaultCamelContextNameStrategy) {
                            // use this as the fixed name
                            LOG.warn("Reassigned auto assigned name on CamelContext from: " + context.getName()
                                    + " to: " + name + " due to clash with existing name already registered in MBeanServer.");
                            // now set the fixed name we are using onwards
                            context.setNameStrategy(new ExplicitCamelContextNameStrategy(name));
                        } else {
                            LOG.warn("This CamelContext(" + context.getName() + ") will be registered using the name: " + managementName
                                + " due to clash with an existing name already registered in MBeanServer.");
                        }
                    }
View Full Code Here

                        if (context.getNameStrategy() instanceof DefaultCamelContextNameStrategy) {
                            // use this as the fixed name
                            LOG.warn("Reassigned auto assigned name on CamelContext from: " + context.getName()
                                    + " to: " + name + " due to clash with existing name already registered in MBeanServer.");
                            // now set the fixed name we are using onwards
                            context.setNameStrategy(new ExplicitCamelContextNameStrategy(name));
                        } else {
                            LOG.warn("This CamelContext(" + context.getName() + ") will be registered using the name: " + managementName
                                + " due to clash with an existing name already registered in MBeanServer.");
                        }
                    }
View Full Code Here

    }

    public void setup() throws Exception {
        context = new DefaultCamelContext();

        context.setNameStrategy(new ExplicitCamelContextNameStrategy("myCamelContextName"));

        // Add a simple test route
        context.addRoutes(new RouteBuilder() {
            @Override
            public void configure() throws Exception {
View Full Code Here

TOP

Related Classes of org.apache.camel.impl.ExplicitCamelContextNameStrategy

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.