Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

JDBC APPLETS

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am making an online exam applet which will read questions from the database and will have a timer and all, something like the jcp exams. The problem is that browsers dont allow a JDBC ODBC connection because of the sandbox model. Please enlighten me as to how to overcome this problem. Any help will be much appreciated.
Thanx,
Bhaskar.
 
Saloon Keeper
Posts: 22146
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solution 1. Set up security and sign the applet. Not recommended for general use because a lot of DBMS's use TCP/IP ports that get blocked by firewalls.
Solution 2. Use a 3-tier solution. Do all the JDBC stuff on the server and use a URLConnection to fetch/save data from the applet. Note that this has to be the same server that the applet was loaded from!
 
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic