Update src/main/java/com/alibaba/druid/pool/DruidDataSource.java

This commit is contained in:
charles
2012-12-09 23:45:59 +08:00
parent 3ce80f8c62
commit 088c7d185b
@@ -1438,6 +1438,10 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
final String factoryName = className + "Factory"; // XXX: not robust
Reference ref = new Reference(className, factoryName, null);
ref.add(new StringRefAddr("instanceKey", instanceKey));
ref.add(new StringRefAddr("url", this.getUrl()));
ref.add(new StringRefAddr("username", this.getUsername()));
ref.add(new StringRefAddr("password",this.getPassword()));
//TODO ADD OTHER PROPERTIES
return ref;
}