I have RESTful web service which uses Jersey and I need to create a background task which will do some actions (calling DB, etc.). I found some examples which use ServletCon