File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes jdbc odbc driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "jdbc odbc driver" Watch "jdbc odbc driver" New topic

jdbc odbc driver

mickey grady

Joined: Aug 10, 2001
Posts: 1
Hi all,
i am developing a project using Jbuilder which connects up to an Access database. It works fine when I run them from AppletViewer but when I run them from web page, it does not connect up to the database. It looks for sun/jdbd/odbc/JdbcOdbcDriverManager.class and does not seem to be able to find it. Need this to work as i need to link up my applets. really need help quick as i have to have projecy finished by September 1st.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

You have 2 problems. First, all the popular web browsers are equipped with really antique JDK's (pre-jdbc). That can be solved by using the Java plug-in.
However, then you will immediately be hit with the next obstacle. JDBC is considered "dangerous", so the sandbox forbids applets running in web browsers to use it (the AppletViewer IS allowed to use it). This could be solved, but then you hit the third problem.
Many DBMS's use private tcp/ip ports in their jdbc drivers - for example, SQL server uses 1033, PostgreSQL uses 5432, etc. So if there's reasonably tight firewall between the DBMS and the user, even a signed applet won't work.
Yes, it's a vast conspiracy. The whole setup is designed to (ahem) "encourage" you to use a 3-tier system, where the webserver does the actual talking to the DBMS. Then, on top of that, you'll discover that MS-Access is a stepchild DBMS in the web world - the jdbc-odbc bridge isn't threadsafe. For a major-league app you need a major-league DBMS like SQL Server, DB/2, Oracle - or - if you're cheap, like me - MySQL or PostgreSQL.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: jdbc odbc driver
It's not a secret anymore!