* @param props properties to be used for the DataSource
* @return JDO Datasource configuration
*/
public static DataSource createJdoDSConf(String dsClassName, Properties props)
{
DataSource dsConf = new DataSource();
dsConf.setClassName(dsClassName);
for (Enumeration e=props.keys(); e.hasMoreElements(); ) {
Object key = e.nextElement();
Object value = props.get(key);
dsConf.addParam(createJdoConfParam(key.toString(), value.toString()));
}
return dsConf;
}