StockPriceBean spbean = null;
try {
spbean = (StockPriceBean) env.lookup("bean/pricebean");
} catch (NamingException ne) { }
HttpServletRequest hRequest = null;
if (request instanceof HttpServletRequest)
hRequest = (HttpServletRequest) request;
HttpSession hSession = hRequest.getSession();
if (hSession != null)
hSession.setAttribute("MyBean",spbean);
chain.doFilter(request,response);