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.
>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.
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!