Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT DBF
HxttConnectionPoolDataSource
Andrey Fedotov
2005-06-17 00:00:00.0
Hello!

I have a question regarding using HxttConnectionPoolDataSource. My url to the database is "jdbc:dbf:/c:/dbffiles". By unfortunaly there's no HxttConnectionPoolDataSource constructor with passing url as an input parameter.
I have to use java.util.Properties as an input parameter to the HxttConnectionPoolDataSource constructor - but I didn't find any documentation where the format of Properties file for HxttConnectionPoolDataSource is described...
I'd be very grateful if you write me the format of this properties...

Now I'm trying
Properties DbfProp = new Properties();
DbfProp.setProperty("c:/dbffiles"); // or DbfProp.setProperty("jdbc:dbf:/c:/dbffiles");

com.hxtt.sql.HxttConnectionPoolDataSource dbfcpds = new com.hxtt.sql.HxttConnectionPoolDataSource(DbfProp);

But every time I get such exception: urlPrefix can't be null!

Thank you very much for supporting!
Re:HxttConnectionPoolDataSource
HXTT Support
2005-06-18 00:00:00.0
The simplest code is:

com.hxtt.sql.HxttConnectionPoolDataSource dbfcpds = new com.hxtt.sql.HxttConnectionPoolDataSource();
dbfcpds.setUrl(("jdbc:dbf:/c:/dbffiles");
... con=dbfcpds.getConnection();//Or getPooledConnection()




Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap