I have a server that has a mysql database. I want my client-side java application to query if the user is in the database (to give them access to the rest of the application). Ideally, I want my client-side app to communicate to a server-side app (same server where mysql db is stored) that will take this query, query the db and send the query results back to the client.
I understand this can be done using Java ServerSockets, and I think I have an idea on how to do this, but before I continue I'd like to know if there is a framework that already does this? Maybe something I can simply run on my server that will listen for these queries from clients and send the result to the client. Basically, does this solution already exist so that I do not have to build the application myself?
This is all new to me and I'd like to deploy this system as soon as possible. I know building it on my own will take a while (especially if I want it to be security conscious), so I'd like to save time where I can with pre-existing tools. Btw, I'm using an AWS EC2 VM running Ubuntu. I've already got the mysql db installed and running on localhost.
Any advice is welcomed,
Thanks