我想在我的 web.xml 中配置上下文参数。在通常的方法调用中(使用缝 2.2.0),我这样做:
readDirectory = (String) FacesContext.getCurrentInstance()
.getExternalContext().getInitParameter(
"ReadDirectory");
它工作正常,但在异步方法(@Asynchronous)中,我的 faceContext 为空。
所以我不知道如何获得这个参数。