]
Alex Savitsky commented on JBSEAM-1145:
---------------------------------------
Another thing I noticed about this issue - if selectedUser property is referenced from the
.xhtml page via getter, instead of using @Out annotation (and the @Out annotation
removed), the problem doesn't appear either for transient or managed entities.
"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: