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.
|
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
|
Thank you very much, it works.
best regards
Rodolfo.
|