My application gets the EntityManager and UserTransaction in each JSP file using the injection feature:
<%! @PersistenceContext(unitName = "SSIS2") public EntityManager em; @Resource UserTransaction utx;%>
I am not using the em and utx there, I distribute it to my controller classes to access the database.
Why did this work in JBoss 5.1 but not in the new JBoss 7.1.1? According to the JSP specs it should not be permitted.
How can I now retrieve the EntityManager and the UserTransaction?
Retrieving data ...