Package org.apache.camel.impl

Examples of org.apache.camel.impl.ExplicitCamelContextNameStrategy


    }

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

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

        final ManagementStrategy managementStrategy = context.getManagementStrategy();

        final ManagementAgent managementAgent = managementStrategy.getManagementAgent();
        managementAgent.setMBeanServerDefaultDomain("org.apache.camel");
View Full Code Here


                        if (name != null) {
                            // 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));
                            fixed = true;
                            done = true;
                        }
                    }
                    // we could not fix it so veto starting camel
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

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.