File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc odbc driver

 
mickey grady
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17628
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic