This content has been marked as final.
Show 5 replies
-
1. Re: access EntityManager from a Servlet
nickarls May 19, 2008 9:31 AM (in response to koatto)protected void doGet(HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { new ContextualHttpServletRequest(request) { public void process() throws Exception { // stuff }.run(); }
-
2. Re: access EntityManager from a Servlet
koatto May 19, 2008 10:28 AM (in response to koatto)It's what i did till now, but when i try to do Component.getInstance(
entityManager
) i always get a null instance.What could be wrong?
Thanks.
-
3. Re: access EntityManager from a Servlet
nickarls May 19, 2008 10:53 AM (in response to koatto)Can you access Identity or other built-ins?
-
-
5. Re: access EntityManager from a Servlet
mverkaik Jul 6, 2009 11:44 PM (in response to koatto)Look at section "Context Management for Custom Servlets"
http://docs.jboss.com/seam/2.1.0.SP1/reference/en-US/html_single/#d0e22967