Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT DBF
DBF Driver - Connection Pooling & Indexes
chris kyte
2007-01-09 07:54:57.0
Hi,

My company is interested in using your DBF driver to integrate J2EE applications with FoxPro V 2.6. I have downloaded the trial software and have started a series of tests to make sure that we can get FoxPro and our new J2EE application to coexist.

However, I have come accross a few issues...

Firstly, I cannot get "insert" statements to work at all when used in conjunction with connection pooling. No exceptions are thrown and nothing is reported to the application server console. Is there any configauration I may be missing? I have set the lockType=FOXPRO custom property. What is slightly strange about this is that if I load the driver using the Driver Manager class, instead of using the connection pooling I have configured, it works fine!! However, I would like to use connection pooling as it will be far more efficient inn the long run.

Secondly, if I insert a new record into the database using the DBF driver, how can I get a open FoxPro session to update immediatly with the new data? At the moment I have to reopen the database in FoxPro to then see the data entered via the web front end.

Many thanks in advance for any help you can offer.

Best Regards,

Chris
Re:DBF Driver - Connection Pooling & Indexes
HXTT Support
2007-01-09 08:52:31.0
>Firstly, I cannot get "insert" statements to work at all when used in
> conjunction with connection pooling.
What's your error message prompt? Maybe your connection pool called Connection.setReadOnly()? What's your connection pool manager? Maybe you can try PooledConnection.

>how can I get a open FoxPro session to update immediatly with the new data?
>At the moment I have to reopen the database in FoxPro to then see the data
>entered via the web front end.
"go bottom" will refresh and find the new inserted rows. You can try "SET REFRESH TO nSeconds1 [, nSeconds2]" command too.
Re:Re:DBF Driver - Connection Pooling & Indexes
chris
2007-01-11 01:39:21.0
FIXED - My issue was that I needed to surround my SQL insert in a transaction and commit the transation at the end. My J2EE app and FOXPRO are now working in perfect harmony! Many thanks for your help!

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap