I have a mysql database and an applet in some free hosting site. The applet needs to access that mysql database. How do I do that ? Is it possible to remote access mysql database from an applet? how ?
A:
Here's an example of a JAVA applet connecting to MySql database.
Darin Dimitrov
2010-08-07 15:01:42
I tried that. It worked for mysql server in my pc (localhost). Couldn't make it work for remote mysql server.
Prottoy
2010-08-07 15:28:23
A:
The applet will execute on the client browser. Its doubtful/unlikely that your free hosting provider allows remote mysql connections. So your best bet would be some sort of HTTP web service.
If you can use Java on the server then check out CXF. If you can only use PHP then things are tougher but look at NuSOAP.
On your applet you can use CXF to consume the service.
renick
2010-08-07 15:08:27