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
DBF Driver - Connection Pooling & Indexes
chris kyte
2007-01-09 07:54:57
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
>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
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
 

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