So I've developed a Low-Level TCP Server in Java using Managed Threads and Server Sockets. It runs as a standard .jar and listens and handles incoming connections it receives on a ServerSocket and sends anything it receives on to another server through a Socket.
I'm trying to make a Web-Based UI that will handle basic things like change the external server's address, start/stop the server, know when it's running and what's connected etc.
I wanted to avoid setting up an entire Tomcat Application completely seperate from the Java Server, as they would need to share a database. So I've been looking into converting everything to Jetty, but it doesn't seem like that's the best option.
Are there better options for HTML libraries that would be good for controlling the Java Application? Or is it a better idea to move my SocketServer to a full Web-App served by Tomcat or something?
If the latter, is there a way to start the SocketServer when the Web-Application starts and make sure it stays running?
Aucun commentaire:
Enregistrer un commentaire