]
Chris Fraser updated JBSEAM-2331:
---------------------------------
Attachment: WidgetHome.java
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: