简体   繁体   中英

Getting data from a Java applet

I have created a Java applet which will be embedded on a website. Clients will run the applet (which is a game) on the website, and necessary data will be taken.

I need to receive this data somehow so I can analyze it. There will be many clients though and lots of said data will need to be received.

How can I do that?

I have read online about using a database through MySQL or SQLite. However, these seem very complicated and I don't know how to work with them. Should I use either of these database services? If so, how would I set them up to work with the applet???

Assuming you are talking about a regular applet (and not JNLP), the security sandbox will prevent the applet from communicating with anything other than the webserver from which it was downloaded. So whatever webserver hosts the applet needs to also have some means of accepting and persisting/broadcasting HTTP GETS, POSTS, etc from the Applet.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM