Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...This was the ONLY place that I could find information that I could use to resolve the problem. So thanks once again to member TomSark and the SQL forum!..."

Geography

Where in the world do Tek-Tips members come from?
ceaton (MIS)
8 Oct 99 8:40
I am creating an application in with Java applets that reside on HTML pages. The applets(11)
gather contain the information the user wants to use in the SQL and calculations. Now, I have .dbf tables with the information that is needed to perform the SQL and calculations.The problem is that this application is going to be installed on the users machine from a CD-ROM along with the data files. I have read about the JDBC-ODBC bridge
and I was told about how it "might" work. I need to know for sure. I can't have the user trying to configure their ODBC from the Control Panel. I need this to happen without any user intervention. If there are any suggestions on how to accomplish this please let me know.

Thanks,

Courtney
ceaton@lrp.com

pmailman (Programmer)
13 Oct 99 11:12
We faced a similar problem in our Java project. The solution we chose was to use a middleware server, Symantec dbANYWHERE. (I don't think dbANYWHERE is the only game in town for this; we went with it because it is bundled with Visual Cafe, which we were using for our IDE.) dbANYWHERE sits on the Web server machine. You reference it from your applet using a JDBC URL. No additional software needs to be installed or configured on the client. (It does require an additional archive file for the interface, but that resides on the server, as any supporting JAR file would.) The trick that saves your poor end-users the agony of configuring their client is that the configuration happens on a single, central machine (i.e. the Web/dbANYWHERE server) instead of at the client.

In this case, the database linking software that you install/configure on the server could be either direct JDBC or JDBC/ODBC depending upon what is available or convenient for the specific database engine you're linking to.

Depending upon your deployment situation, there may be another alternative. If your situation is intranet rather than Internet, you may be able to use a JDBC/ODBC link, create the ODBC datasource on the server, and make the datasource available to your clients through the file system (e.g. through Microsoft Networking if this is a pure Windows situation, or NFS or Novell or whatever). Or you may be able to install a copy of the datasource file on the client.

If you did this, I think you'd still have to install a JDBC driver specific to your database engine on each client machine.

If you're in a UNIX environment rather than Microsoft, I'm not sure how to go.

ceaton (MIS)
13 Oct 99 11:20
Thanks for your reply, however I don't have any of those situations. I do not have a server in which the data files reside. This application is going to be going onto a CDROM in which the user installs the program including the data files.

Thanks anyway,

Courtney
pmailman (Programmer)
19 Oct 99 10:09
If this is strictly local to one machine, that may simplify things.

I'm not familiar with the .dbf file type. What kind of database does that represent? Whatever it is, your next stop is to determine what must or may be installed on the machine to support that database. Your best bet ought to be the documentation for or otherwise the vendor of the database engine. There may be third-party vendors as well (e.g. Intersolv) who offer drivers for this kind of database

If you can find native JDBC driver for this database, that's probably the best way to go. Since not all vendors support JDBC directly, but many support ODBC, a good fallback is an ODBC driver with a JDBC-ODBC bridge. Similar to what I said in my earlier message concerning intranet installation, if you're installing from a CD-ROM, I think you should be able to prepare ahead of time an ODBC data source file and install _it_ off the CD-ROM too.

Though I've never done this, I'll give you dollars to doughnuts it can be done this way. I know I've installed several database-related products on my development system that have included demos, and as part of their installation process they created ODBC datasources for me (no additional ODBC configuration required by me), which were then used in the demos.

So... It _can_ be done; the trick is determining the details of how.


Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close