I have a 'background' application which gathers certain data and performs certain actions over time. This application has been created in Netbeans (SE) as a regular Java application. One of my controller classes has an overview of everything which recently happened.
Now I'm in need of a website that will allow me to view the recent events and set certain flags in the running application. I wanted to create the website for my smartphone with Spring. So I upgraded my Netbeans to the EE version to have access to the features.
I created this web application in a separate Netbeans project and then wanted to "import" the project into the original application. So when I launch the background application, this will also trigger the Spring application to run (binding to port 80/8080). But this seems to be more tricky then I thought. Because I want to avoid communicating via RPC's or web services. I'd rather keep everything in memory, and avoid having to convert objects to XML, SQL records or similar.
Are there any (lightweight) frameworks or software kits out there that will allow me to start a webserver and easily communicate data with it (in memory)?