hi ,
in seam 2 we have ServletContexts class which i was using like :-
ServletContexts.instance().getRequest().getSession().setAttribute("","");
ServletContexts.instance().getRequest().getSession().getAttribute("","");
I'm planning to replace it with
@Inject
private HttpServletRequestContext httpRequest;
then
httpRequest.getRequest().getSession().setAttribute("","");
httpRequest.getRequest().getSession().getAttribute("","");
I'm doing correct or theres a better way ??????
Thanks!
You could create Producers. I think the Servlet integration in Solder also has something similar already built in.