[
https://issues.jboss.org/browse/JBAS-9346?page=com.atlassian.jira.plugin....
]
Scott Marlow updated JBAS-9346:
-------------------------------
Description:
For any servlet using a container managed entity manager, without a JTA transaction
active. The container managed entity manager should be closed after the servlet
invocation completes.
One way this might be done, is by dynamically adding the
org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve valve, to the JBossWebMetaData metadata
object, which is
equivalent to adding the valve to jboss-web.xml.
Servlets that use container managed transactional entity managers
outside of JTA transactions, should close the entity manager after the servlet completes
----------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBAS-9346
URL:
https://issues.jboss.org/browse/JBAS-9346
Project: JBoss Application Server
Issue Type: Task
Security Level: Public(Everyone can see)
Components: JPA / Hibernate
Reporter: Scott Marlow
Assignee: Scott Marlow
Fix For: 7.0.0.Beta4
For any servlet using a container managed entity manager, without a JTA transaction
active. The container managed entity manager should be closed after the servlet
invocation completes.
One way this might be done, is by dynamically adding the
org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve valve, to the JBossWebMetaData metadata
object, which is
equivalent to adding the valve to jboss-web.xml.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira