Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC APPLETS

 
Bhaskar Selvaraju
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.
 
Tim Holloway
Saloon Keeper
Posts: 18366
56
Android Eclipse IDE 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic