Package org.apache.synapse.message.store

Examples of org.apache.synapse.message.store.MessageStore.destroy()



            log.info("MessageStore: " + ms.getName() + " has been updated from the file: " + fileName);

            waitForCompletion();
            existingMs.destroy();
            return ms.getName();

        } catch (DeploymentException e) {
            handleSynapseArtifactDeploymentError("Error while updating the MessageStore from the " +
                    "file: " + fileName);
View Full Code Here


            if (ms != null) {
                getSynapseConfiguration().removeMessageStore(artifactName);
                if (log.isDebugEnabled()) {
                    log.debug("Destroying the MessageStore named : " + artifactName);
                }
                ms.destroy();
                if (log.isDebugEnabled()) {
                    log.debug("MessageStore Undeployment of the endpoint named : "
                            + artifactName + " : Completed");
                }
                log.info("MessageStore named '" + ms.getName() + "' has been undeployed");
View Full Code Here

            if(oldMessageStore != null) {
                // this means there is an existing message store

                //1st we clean up the old
                configuration.removeMessageStore(oldMessageStore.getName());
                oldMessageStore.destroy();

                // then we startup the new.
                String fileName = oldMessageStore.getFileName();
                messageStore.setFileName(fileName);
                messageStore.init(getSynapseEnvironment());
View Full Code Here

        assert configuration != null;
        if (configuration.getMessageStore(name) != null) {
            MessageStore removedMessageStore = configuration.getMessageStore(name);
            configuration.removeMessageStore(name);
            String fileName = removedMessageStore.getFileName();
            removedMessageStore.destroy();

            MediationPersistenceManager pm = getMediationPersistenceManager();
            pm.deleteItem(removedMessageStore.getName(),
                    fileName,ServiceBusConstants.ITEM_TYPE_MESSAGE_STORE);
View Full Code Here


            log.info("MessageStore: " + ms.getName() + " has been updated from the file: " + fileName);

            waitForCompletion();
            existingMs.destroy();
            return ms.getName();

        } catch (DeploymentException e) {
            handleSynapseArtifactDeploymentError("Error while updating the MessageStore from the " +
                    "file: " + fileName);
View Full Code Here

            if (ms != null) {
                getSynapseConfiguration().removeMessageStore(artifactName);
                if (log.isDebugEnabled()) {
                    log.debug("Destroying the MessageStore named : " + artifactName);
                }
                ms.destroy();
                if (log.isDebugEnabled()) {
                    log.debug("MessageStore Undeployment of the endpoint named : "
                            + artifactName + " : Completed");
                }
                log.info("MessageStore named '" + ms.getName() + "' has been undeployed");
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.