server-application

ThreadPool and Producer - Consumer pattern design question

I want to implement a Producer - Consumers pattern using a ThreadPool for the Consumers. I will have 1 producer of requests and multiple consumers that will handle the incoming requests. When Implement the consumers using a threadpool my question if I should still have my own Queue for the producer to put requests on and then pass them...

How can I write a Java application that can update itself at runtime?

I would like to implement a java application (server application) that can download a new version (.jar file) from a given url, and then update itself at runtime. What is the best way to do this and is it possible? I guess that the application can download a new .jar file and start it. But how should I do the handover, e.g. know when t...