Similar to How can I access the ServletContext from within a JAX-WS web service?, is there a way to access applicationContext, easier than this?
import javax.ann
I would install a Filter that saves ServletContext before chaining in a ThreadLocal