Re: How to inject hibernate session into my Servlet

2013-02-19 Thread Taha Siddiqi
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

Re: How to inject hibernate session into my Servlet

2013-02-19 Thread Thiago H de Paula Figueiredo
On Tue, 19 Feb 2013 10:32:38 -0300, dinesh707 wrote: I have a HttpServlet inside tapestry project. Why? But I think it is not recognized as a part of IoC. You're right. Only stuff declared as services in Tapestry IoC are recognized by IoC. So when I do an inject it does not work. It