aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 15665
    
  15

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdbc odbc driver
 
Similar Threads
JDBC with database specific calls
Please Help!
Automatically registering ODBC Database in Windows
NullPointerException
JDBC