Package org.apache.synapse.eventing

Examples of org.apache.synapse.eventing.SynapseEventSource.buildService()


                es.setFileName((new File(fileName)).getName());
                if (log.isDebugEnabled()) {
                    log.debug("EventSource named '" + es.getName()
                            + "' has been built from the file " + fileName);
                }
                es.buildService(getSynapseConfiguration().getAxisConfiguration());
                if (log.isDebugEnabled()) {
                    log.debug("Initialized the EventSource : " + es.getName());
                }
                getSynapseConfiguration().addEventSource(es.getName(), es);
                if (log.isDebugEnabled()) {
View Full Code Here


                }
                getSynapseConfiguration().removeEventSource(existingArtifactName);
                if (!existingArtifactName.equals(es.getName())) {
                    log.info("EventSource named " + existingArtifactName + " has been Undeployed");
                }
                es.buildService(getSynapseConfiguration().getAxisConfiguration());
                if (log.isDebugEnabled()) {
                    log.debug("Initialized the EventSource : " + es.getName());
                }
                getSynapseConfiguration().addEventSource(es.getName(), es);
                if (log.isDebugEnabled()) {
View Full Code Here

        final Lock lock = getLock();
        try {
            lock.lock();
            SynapseConfiguration synapseConfiguration = getSynapseConfiguration();
            SynapseEventSource synapseEventSource = buildEventSource(eventsource);
            synapseEventSource.buildService(getAxisConfig());
            synapseEventSource.setFileName(
                    ServiceBusUtils.generateFileName(synapseEventSource.getName()));
            synapseConfiguration.addEventSource(eventsource.getName(), synapseEventSource);
            persistEventSource(synapseEventSource);
        } catch (Exception e) {
View Full Code Here

            }

            AxisConfiguration axisCfg = getSynapseConfiguration().getAxisConfiguration();
            axisCfg.removeService(eventsource.getName());
            SynapseEventSource synapseEventSource = buildEventSource(eventsource);
            synapseEventSource.buildService(axisCfg);
            synapseEventSource.setFileName(oldEventSrc.getFileName());
            synapseConfiguration.removeEventSource(eventsource.getName());
            synapseConfiguration.addEventSource(eventsource.getName(), synapseEventSource);
            persistEventSource(synapseEventSource);
        } catch (Exception e) {
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.