]
Alex Savitsky updated JBSEAM-1145:
----------------------------------
Attachment: UserBean.java
components.xml
User.java
The Java code for the action bean and entity, along with the components.xml
"javax.persistence.TransactionRequiredException: no transaction
is in progress" thrown during flush of a transient entity in a @Transactional POJO
--------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-1145
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1145
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 1.2.1.GA
Environment: Tomcat + Microcontainer (has also been tried on Tomcat + JOTM,
Tomcat + Atomikos, Tomcat + JBoss Transactions, all with the same result)
Seam-managed Tx and PC, long-running conversations with manual flush
Reporter: Alex Savitsky
Attachments: components.xml, faces-config.xml, User.java, UserBean.java,
users.xhtml, web.xml
When persisting a transient entity during manual flush, an exception
"javax.persistence.TransactionRequiredException: no transaction is in progress"
is thrown, unless getEntityManager().joinTransaction() is executed prior to flush() -
despite declaring the POJO as @Transactional and using Seam-managed transactions and
persistence contexts.
When persisting a managed entity, however, no exceptions are thrown and update completes
normally.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: