How can I access the ApplicationContext from within a JAX-WS web service?

前端 未结 5 1386
暗喜
暗喜 2021-02-15 08:48

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         


        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-15 09:20

    I would install a Filter that saves ServletContext before chaining in a ThreadLocal

提交回复
热议问题