Two Laptop Bag*
The moose likes Applets and the fly likes Applet with JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "Applet with JDBC" Watch "Applet with JDBC" New topic
Author

Applet with JDBC

hasan wasif2k1
Greenhorn

Joined: Jan 13, 2001
Posts: 26
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

Joined: May 09, 2001
Posts: 92
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

Joined: Jun 25, 2001
Posts: 16094
    
  21

Also, jdbc connections frequently use tcp/ip ports that get blocked by firewalls


Customer surveys are for companies who didn't pay proper attention to begin with.
Ashwin Kumar
Greenhorn

Joined: Feb 16, 2001
Posts: 1
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
 
GeeCON Prague 2014
 
subject: Applet with JDBC