home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Applet Database Access

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1454
Discussions: 200,927, Posts: 2,379,135, Members: 246,293
Old June 21st, 2003, 03:55 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Jun 2003
Posts: 2
Lightbulb
Applet Database Access

I have had problems writing any Java applet that successfully connects to and executes queries in a MySQL database. Now, I have read multiple descriptions of how it is meant to be done. Regardless, I continue to receive this message:

Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:3306 connect, resolve)

The applet runs perfectly inside my Eclipse development environment. I have attempted to modify the policy files to resolve this problem, to no avail. I still have not been able to find a clear explanation of what is necessary to create an applet that utilizes a SQL database. Will the users be able to run the applet without downloading any libraries or having a particular policy file on their machine? What is wrong with what I am doing, and what is the correct approach to this problem?

I really appreciate any help resolving this general issue.

Regards,

Cosmo
kozmoh27 is offline   Reply With Quote
Old June 21st, 2003, 10:12 PM     #2 (permalink)
Banned
 
qball's Avatar
 
Join Date: Oct 2001
Posts: 447
problematic at best, due to applet security...

try:

http://saloon.javaranch.com/cgi-bin/...Continue=False
qball is offline   Reply With Quote
Old June 23rd, 2003, 01:23 AM     #3 (permalink)
Member
 
Join Date: Sep 2002
Posts: 364
Here is another link that might give you some help:

http://www.onjava.com/pub/a/onjava/2...ts.html?page=1

On a side note, however, I would only be able to imagine how an applet would run as a front-end for a DB (depending on what you are doing with it). Maybe consider using MS with an Active X control or just a web scripting language.
Creosote is offline   Reply With Quote
Old June 24th, 2003, 12:11 AM     #4 (permalink)
Banned
 
qball's Avatar
 
Join Date: Oct 2001
Posts: 447
applets will work fine as front end, if config spot on.

seen a few:

clearstation, since bought out, did one.
topcoder, since bought out, did one.

the secret is:

feed applet from server side, not user/browser side.
qball is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2866)
Obama the Muslim (14)
Is the PSU I received dead? (10)
windows vista security holes (9)
HIS HD5770 graphic card question (15)
Foreign voltage (10)
Print spooler problem (13)
Install XP pro and a Vista laptop ?.. (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Ideal cheap graph card for PC-Gamin.. (15)
New Computer wont recognize XP disc (7)
EVGA 9800 gtx help with finding a g.. (8)
World's largest Monopoly Game using.. (331)
Recent Discussions
Fire in DVD (2)
Safe International POS for CC,DC cash.. (0)
Regular Build (0)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Install XP pro and a Vista laptop ?? (10)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)
FiOS modem/router interfering with ne.. (7)
Browsers wont load websites (2)
Virus Doctor Popup? (1)
Dept. of HS: NSA 'Helped' Develop Vis.. (15)
EVGA 9800 gtx help with finding a goo.. (8)
Problem with speed step/turbo boost? (1)


All times are GMT -4. The time now is 02:12 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28