[jboss-user] [JBoss Seam] - Re: jndi - tomcat - jsp file
petemuir
do-not-reply at jboss.com
Thu Apr 26 05:17:55 EDT 2007
You can't get the EntityManager in a jsp page. If you want it in a servlet and are using a SMPC called entityManager you can do Component.getInstance("entityManager"), but you will need to transaction demarcation yourself. In general Seam/JSF without you needing to mix your presentation and business logic like that (there are still some cases where you have to use a servlet).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040883#4040883
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040883
More information about the jboss-user
mailing list