Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC APPLETS  RSS feed

 
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
Bartender
Posts: 18774
74
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
Boost this thread!