I have started java not that long ago, and I was wondering, if I want to make a GUI, and then I want the gui to display some data, I can't have mysql connection in that gui, it's a very big security exploit, therefore I've thought about making a java server that receives packets, and sends back data.
I know PHP HTTP callbacks are the best for this, but I really want to get into the server/networking in java.
Is there any library that offers such thing? Tutorials?