[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-1145) "javax.persistence.TransactionRequiredException: no transaction is in progress" thrown during flush of a transient entity in a @Transactional POJO
Alex Savitsky (JIRA)
jira-events at lists.jboss.org
Wed Apr 4 15:31:58 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1145?page=all ]
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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list