• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

jdbc odbc driver

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 28417
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
rubbery bacon. crispy tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic