日期:2014-05-18 浏览次数:20689 次
private IConnectionPool() {
/*SAXReader reader = new SAXReader();
Document doc = null;
try {
File f=new File("/vo.xml");
doc = reader.read(f);
} catch (DocumentException e) {
e.printStackTrace();
}
Element root = doc.getRootElement();
Iterator<Element> ite = root.elementIterator("DataSource");
Element e = ite.next();*/
this.driver="oracle.jdbc.driver.OracleDriver";
this.url="jdbc:oracle:thin:@127.0.0.1:1521:orcl";
this.userName="scott";
this.pwd="tiger";
this.maxConnections=150;
this.initalConnection=12;
this.incrementConnections=5;
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("vo.xml");
doc=reader.read(inputStream);