Using java.util.concurrent.executors
<p>I am trying to write a service which runs a module as a separate thread.
The service needs to provide interface to start running a module by taking a Runnable/Callable as argument.
It should also provide graceful shutdown like logging the reason for failure and closing connections to db and stuff.(How to add this functionality ?)</p>

<p>I understand that <code>java.util.concurrent.executors</code> is the right thing for me. But not able to join the things together. It would be great if someone could share a outline or nice tutorial for <code>java.util.concurrent.executors</code>.</p>
