BZ-1105174: adapted WatchServices to avoid Thread.sleep (now using wait/notify) and not using EJB to execute the watch service infinite loop - ejb now just process the event. this change was needed in order to avoid app server hanging during shutdown