Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Applet Security

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to use an applet to connect to a database that resides on another computer.
The database server is not on the client computer where the applet is downloaded nor is it on the web server where the applet is located.
I have granted socket permission to the applet codebase and have added the policy file into the "master security properties file" (java.security file).
However when I try to access the page containing the applet using Internet Explorer, it still gives a java.security.AccessControlException.
The strange thing is, I am able to connect to the database using AppletViewer.
Can somebody tell me what's wrong with IE?
BTW, I am using a Java Plug-In 1.3.1.
Please help.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
may be im giving it after long time .. U try to do applet-jdbc communication with applet -servlet communication.. It will solve ur problem i hope.. Do the database part in the servlet and send the data to the applet...

venkat
 
Saloon Keeper
Posts: 25466
180
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look more closely at your security setup. The AppletViewer isn't as tightly confined to the "sandbox" as a browser is.
Venkat's right, though. Unless you're writing apps for an environment that's rigidly controlled, it's nothing but heartache to try and talk from a web client directly to a DBMS. Even if you get your applet signed and the security all cleared, someone else's firewall can block you.
 
Let me tell you a story about a man named Jed. He made this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic