private void processWSDD(File dir) throws ConfigurationException { File file = new File(dir, this.configFile); if (!file.exists()) { return; } log.debug("Loading service configuration from file: " + file); InputStream in = null; try { in = new FileInputStream(file); WSDDDocument doc = new WSDDDocument(XMLUtils.newDocument(in)); doc.deploy(this.deployment); } catch (Exception e) { throw new ConfigurationException(e); } finally { if (in != null) { try { in.close(); } catch (IOException e) {} } } }
private void processWSDD(File dir) throws ConfigurationException { File file = new File(dir, this.configFile); if (!file.exists()) { return; } log.debug("Loading service configuration from file: " + file); InputStream in = null; try { in = new FileInputStream(file); WSDDDocument doc = new WSDDDocument(XMLUtils.newDocument(in)); doc.deploy(this.deployment); } catch (Exception e) { throw new ConfigurationException(e); } finally { if (in != null) { try { in.close(); } catch (IOException e) {} } } }
private void processWSDD(File dir) throws ConfigurationException { File file = new File(dir, this.configFile); if (!file.exists()) { return; } log.debug("Loading service configuration from file: " + file); InputStream in = null; try { in = new FileInputStream(file); WSDDDocument doc = new WSDDDocument(XMLUtils.newDocument(in)); doc.deploy(this.deployment); } catch (Exception e) { throw new ConfigurationException(e); } finally { if (in != null) { try { in.close(); } catch (IOException e) {} } } }
/** * register an open stream, which we close afterwards * @param instream * @throws SAXException * @throws ParserConfigurationException * @throws IOException */ public void registerStream(InputStream instream) throws SAXException, ParserConfigurationException, IOException { try { Document doc=XMLUtils.newDocument(instream); WSDDDocument wsddDoc = new WSDDDocument(doc); WSDDDeployment deployment; deployment = getDeployment(); if(deployment!=null) { wsddDoc.deploy(deployment); } } finally { instream.close(); } }
/** * register an open stream, which we close afterwards * @param instream * @throws SAXException * @throws ParserConfigurationException * @throws IOException */ public void registerStream(InputStream instream) throws SAXException, ParserConfigurationException, IOException { try { Document doc=XMLUtils.newDocument(instream); WSDDDocument wsddDoc = new WSDDDocument(doc); WSDDDeployment deployment; deployment = getDeployment(); if(deployment!=null) { wsddDoc.deploy(deployment); } } finally { instream.close(); } }
/** * register an open stream, which we close afterwards * @param instream * @throws SAXException * @throws ParserConfigurationException * @throws IOException */ public void registerStream(InputStream instream) throws SAXException, ParserConfigurationException, IOException { try { Document doc=XMLUtils.newDocument(instream); WSDDDocument wsddDoc = new WSDDDocument(doc); WSDDDeployment deployment; deployment = getDeployment(); if(deployment!=null) { wsddDoc.deploy(deployment); } } finally { instream.close(); } }
WSDDDeployment deployment = ((WSDDEngineConfiguration)config).getDeployment(); wsddDoc.deploy(deployment);
WSDDDeployment deployment = ((WSDDEngineConfiguration)config).getDeployment(); wsddDoc.deploy(deployment);
WSDDDeployment deployment = ((WSDDEngineConfiguration)config).getDeployment(); wsddDoc.deploy(deployment);
wsddDoc.deploy(deployment);