我正在使用 Weld 2.0 在 Jetty 6.1 上运行 GWT 应用程序。得到下一个代码:
@SessionScoped
public class SessionContext implements Serializable {
@Inject
private HttpSession httpSession;
public SessionContext() {
super();
//at this point httpSession is null
}
}
我错过了什么,为什么没有注入 HttpSession?参考说Injecting the HttpSession will force the session to be created.