Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet with JDBC

 
hasan wasif2k1
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we connect Applet to a database using JDBC without using any Web Server. My programme is working using Web Server but not without it. The error it gives is
com.ms.security.SecurityExceptionEx[AppletJdbc.init]
 
Amit Agarwal
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a jdbc connection is not permitted for untrusted applets, thus the security exception. u can make your applet trusted for achieving this. see another thread at http://www.javaranch.com/ubb/Forum23/HTML/001052.html for making your applet trusted.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, jdbc connections frequently use tcp/ip ports that get blocked by firewalls
 
Ashwin Kumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is normally difficult to connect an applet to a database 'coz applets have a high security model. However, it is possible thru the careful use of code............sometimes this throws a security exception esp when u r asking the applet to communicate with the system outside the java environment
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic