[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2331) EntityHome throws "EntityManager is closed" when app marked <distributable/>

Chris Fraser (JIRA) jira-events at lists.jboss.org
Fri Nov 30 15:13:46 EST 2007


EntityHome throws "EntityManager is closed" when app marked <distributable/>
----------------------------------------------------------------------------

                 Key: JBSEAM-2331
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2331
             Project: JBoss Seam
          Issue Type: Bug
            Reporter: Chris Fraser
         Attachments: WidgetHome.java

Please see my forum post for details on this matter: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=124779

Attached to this ticket is the source for my WidgetHome EntityHome class.  I can upload additional files from the project if that will help, but this can be easily recreated by seam-genning a new project, and generating entities from a DB that's got a single table (Widget) with 2 columns (widgetId, widgetName).  Once that's done, drop my WidgetHome in place of the seam-genned one, mark the app <distributable/> in web.xml, build/deploy/run the app and you'll see the problem when you create/update a widget.

If this is not a bug, then it would at least be nice to have some best practices documented for using EntityHomes (and, as it turns out, EntityQuerys) in an application that has been marked <distributable/>.

-- 
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