private static void createEventSources(SynapseConfiguration synapseConfig, String rootDirPath, Properties properties) { File eventsDir = new File(rootDirPath, EVENTS_DIR); if (eventsDir.exists()) { if (log.isDebugEnabled()) { log.debug("Loading event sources from : " + eventsDir.getPath()); } Iterator events = FileUtils.iterateFiles(eventsDir, extensions, false); while (events.hasNext()) { File file = (File) events.next(); OMElement document = null; try { document = getOMElement(file); } catch (Exception e) { String msg = "Error while building Event Source configuration from file : " + file.getName(); handleConfigurationError(SynapseConstants.FAIL_SAFE_MODE_EVENT_SOURCE, msg, e); } if (document != null) { SynapseEventSource eventSource = SynapseXMLConfigurationFactory. defineEventSource(synapseConfig, document, properties); if (eventSource != null) { eventSource.setFileName(file.getName()); synapseConfig.getArtifactDeploymentStore().addArtifact( file.getAbsolutePath(), eventSource.getName()); } } } } }
private static void createEventSources(SynapseConfiguration synapseConfig, String rootDirPath, Properties properties) { File eventsDir = new File(rootDirPath, EVENTS_DIR); if (eventsDir.exists()) { if (log.isDebugEnabled()) { log.debug("Loading event sources from : " + eventsDir.getPath()); } Iterator events = FileUtils.iterateFiles(eventsDir, extensions, false); while (events.hasNext()) { File file = (File) events.next(); try { OMElement document = getOMElement(file); SynapseEventSource eventSource = SynapseXMLConfigurationFactory. defineEventSource(synapseConfig, document, properties); if (eventSource != null) { eventSource.setFileName(file.getName()); synapseConfig.getArtifactDeploymentStore().addArtifact( file.getAbsolutePath(), eventSource.getName()); } } catch (Exception e) { String msg = "Event source configuration cannot be built from : " + file.getName(); handleConfigurationError(SynapseConstants.FAIL_SAFE_MODE_EVENT_SOURCE, msg, e); } } } }
artifactConfig, properties); if (es != null) { es.setFileName((new File(fileName)).getName()); if (log.isDebugEnabled()) { log.debug("EventSource named '" + es.getName()
artifactConfig, properties); if (es != null) { es.setFileName((new File(fileName)).getName()); if (log.isDebugEnabled()) { log.debug("EventSource named '" + es.getName()
artifactConfig, properties); if (es != null) { es.setFileName((new File(fileName)).getName()); if (log.isDebugEnabled()) { log.debug("EventSource named '" + es.getName()
artifactConfig, properties); if (es != null) { es.setFileName((new File(fileName)).getName()); if (log.isDebugEnabled()) { log.debug("EventSource named '" + es.getName()