Hi You have two options.
1. Convert your servlet into a tapestry page. HttpServletRequestFilter might be of some help. 2. Access the registry through ServletContext using context.getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME) and then call Registry#getService(Session.class) regards Taha On Feb 19, 2013, at 7:02 PM, dinesh707 wrote: > I have a HttpServlet inside tapestry project. But I think it is not > recognized as a part of IoC. So when I do an inject it does not work. It > ends up throwing a null pointer exception. Any suggestion about how to > inject the same hibernate session. > > Thank you > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/How-to-inject-hibernate-session-into-my-Servlet-tp5720097.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org >