jReflectServer
A lightweight Java HTTP server and webservice-framework
...For this distributed code execution no special code is needed. A distributed session can be used to share data between the server instances.
Due to its small footprint, it's also perfect for embedded hardware like the raspberry pi. It is based on proven components like apache http components, apache file upload and jsoup.