ankursaxena
December 13th, 2001, 03:04 PM
Hi!
i had a small question about applets and security they incorporate. i have made an applet which launches JFrame. from the JFrame i am creating an object of a class i call DataIO, this class connects to the database on a different machine. each time when i do a connect to this database from my class(JFrame) i get can not connect erro, but when i run the DataIO class with a normal program it works ok. if the applet was having security issues, should the exception be something like the java.applet.security and all that instead i get can not conenct to mysql on the machine, check if the machine is running a mysql server.
can someone plz help, i knew u could not directly connect to another machine from an applet, but i though the way around was to make a proxy/class which sits on the same machine as the applet, applet talks to that/instanciates an object of that class and then that class does the connecting, cuz i remeber when i made my applet in school to make a chat client, we were using a proxy whcih connected to the chat server sitting on another machine and that worked ok. i dont c much difference here. can someone please help and give some ideas, it would be gr8 thanx a lot.
-Ankur
i had a small question about applets and security they incorporate. i have made an applet which launches JFrame. from the JFrame i am creating an object of a class i call DataIO, this class connects to the database on a different machine. each time when i do a connect to this database from my class(JFrame) i get can not connect erro, but when i run the DataIO class with a normal program it works ok. if the applet was having security issues, should the exception be something like the java.applet.security and all that instead i get can not conenct to mysql on the machine, check if the machine is running a mysql server.
can someone plz help, i knew u could not directly connect to another machine from an applet, but i though the way around was to make a proxy/class which sits on the same machine as the applet, applet talks to that/instanciates an object of that class and then that class does the connecting, cuz i remeber when i made my applet in school to make a chat client, we were using a proxy whcih connected to the chat server sitting on another machine and that worked ok. i dont c much difference here. can someone please help and give some ideas, it would be gr8 thanx a lot.
-Ankur