Do I use an applet, webstart, something else?

Hi, I am trying to figure out the topology of writing a game with Java. The game has a normal website, a CMS, but the game itself is/will be in Java. It will need to utilize a database like MySQL. What I don’t know is if this make sense in an applet. From my searching, it seems no one uses an applet for databases. Somone else told me to use java webstart, something new to me.

What do I do? In the simplest terms, I need to use a Java (applet, app, jws, whatever that’s the question) to be able to select/udpate the database. I don’t know which technique to use. Thank you.

Generally you don’t want that the client is able to connect to the database directly. Otherwise anyone can obtain the user name and password and do whatever he wants with the database.

So, you need some server sided application (PHP, Java, Python, whatever) to sanitize the inputs.