Rodolfo Martin | 2005-03-15 00:00:00.0 | |
Hi,
I'm trying to access a Text Database using spring framework JdbcTemplate class, which requires a DataSource. I tried to create one calling new HxttDataSource(Properties), but it throws: java.lang.Exception: subprotocol can't be null! How can I obtain an instance of HxttDataSource? Regards. | ||
HXTT Support | 2005-03-15 00:00:00.0 | |
You can use HxttDataSource or HxttConnectionPoolDataSource.
You should provide two properties at least for connection: Properties props=new Properties(); props.put("subprotocol","text"); props.put("database","yourDatabasePath"); HxttDataSource ds=new HxttDataSource(props); With best regards, Dai Wei | ||
Rodolfo Martin | 2005-03-16 00:00:00.0 | |
Thank you very much, it works.
best regards Rodolfo. |