Package org.apache.synapse.config

Examples of org.apache.synapse.config.SynapseConfiguration.removeEntry()


        assertDependency(ConfigurationObject.TYPE_ENDPOINT, endpoint.getName(), seq1.getName());
        synapseConfig.removeSequence(seq1.getName());
        assertNoDependency(ConfigurationObject.TYPE_ENDPOINT, endpoint.getName());

        assertDependency(ConfigurationObject.TYPE_ENTRY, entry.getKey(), endpoint.getName());
        synapseConfig.removeEntry(entry.getKey());
        assertNoDependency(ConfigurationObject.TYPE_ENTRY, entry.getKey());

        System.out.println("All tests were successful...");
    }
View Full Code Here


            log.debug("Deleting local entry with key : " + entryKey);
            entryKey = entryKey.trim();
            SynapseConfiguration synapseConfiguration = getSynapseConfiguration();
            Entry entry = synapseConfiguration.getDefinedEntries().get(entryKey);
            if (entry != null) {
                synapseConfiguration.removeEntry(entryKey);
                MediationPersistenceManager pm
                            = ServiceBusUtils.getMediationPersistenceManager(getAxisConfig());
                pm.deleteItem(entryKey, entry.getFileName(), ServiceBusConstants.ITEM_TYPE_ENTRY);
                if (log.isDebugEnabled()) {
                    log.debug("Deleted local entry with key : " + entryKey);
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.