tags:

views:

37

answers:

2

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
I tried that. It worked for mysql server in my pc (localhost). Couldn't make it work for remote mysql server.
Prottoy
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
can you please give me some link ? I am not sure what you are talking about... :(
Prottoy
check updated answer for some links.
renick
thank you... :)
Prottoy