[jbossseam-issues] [JBoss JIRA] Commented: (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
Mon Jan 28 09:30:21 EST 2008

    [ http://jira.jboss.com/jira/browse/JBSEAM-1145?page=comments#action_12397178 ] 
Alex Savitsky commented on JBSEAM-1145:

Tried it with 2.0, it works now.

The issue can be closed.

> "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
>             Fix For: 2.1.0.GA
>         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