This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "jdbc odbc driver" Watch "jdbc odbc driver" New topic
Author

jdbc odbc driver

mickey grady
Greenhorn

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.
Thanks
Mickey

Thanks,<BR>Mickey
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16158
    
  21

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
 
wood burning stoves
 
subject: jdbc odbc driver