Server Application

I have a plain java application that needs to run 24/7. It handles TCP/IP traffic so it needs to be running all the time. I would like to have a web based user interface and like what Vaadin offers.

Is it best to setup a standalone application with embedded Jetty to host the web interface or is there a way to have Tomcat host the application and somehow tie the web interface into the application.

Either way should be fine - you can simply deploy a WAR of the project on Tomcat if you have an instance running for providing other services or to making management easier, or use embedded Jetty if you want an even (slightly) smaller deployment footprint and a completely standalone server. If using Tomcat, your application can be a part of the WAR with the web application or communicate it through some other channel.