[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1712) Allow options for SMPC per Nested Conversation

deanhiller (JIRA) jira-events at lists.jboss.org
Mon Oct 19 11:22:05 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBSEAM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12490398#action_12490398 ] 

deanhiller commented on JBSEAM-1712:
------------------------------------

ONE MORE HUGE idea....I would have no problem in my app if you forced a flush of the parent conversation before these special nested conversations started(to avoid what Marcus stated on integrity)!!!!!  Does that work for everyone else's apps(it might)?  This would mean, I could then throw away the nested conversation on the cancel button, and resume the parent conversation which was saved before I started the nested one!!!!!!

thoughts?  Would everyone else be fine if a special nested conversation with new persistence context flushed the parent before it started?  It works in my applications situation but obviously we all want a solution that works in most contexts.

thanks,
Dean

> Allow options for SMPC per Nested Conversation
> ----------------------------------------------
>
>                 Key: JBSEAM-1712
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-1712
>             Project: Seam
>          Issue Type: Feature Request
>          Components: Core
>    Affects Versions: 2.0.0.BETA1
>         Environment: Windows XP, Seam 2.0 Beta, JBoss 4.2
>            Reporter: Andy Gibson
>            Assignee: Jacob Orshalick
>             Fix For: The future
>
>
> I'd like to request the option to specify that a nested conversation gets it's own entity manager instance as opposed to sharing it with it's parent conversation and other nested conversations. 
> The problem with nested conversations is that you can't actually use them to edit multiple entities since when you flush the PC, you flush it for all conversations. This makes nested conversations only really useful for browsing data, and creating new top level conversation to edit items to isolate the flushes.
> The only alternative is to use a non-Seam managed PC, and make use of the "PC per stateful bean" rule to map a single PC to a single backing bean, but you lose the benefits of a seam managed PC.
> What might be nice is something like :
> @Begin(nested=true, newPC=true)
> and
> <begin-conversation nested="true" newPC="true"/>
> which would indicate that this new nested conversation gets it's own entity manager instance. The attribute would be ignored if this wasn't a nested conversation, and obviously, by default, the attribute is set to false, and a shared PC would be used in the nested conversation in such cases.
> I'm already using one PC per conversation by using top level conversations to edit items, I'd just like to use one PC per nested conversation (where applicable) to get the benefits of nested conversations.
> There are a couple of posts in the forums where I've touched on some of my problems with this issue : 
> http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111681
> http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111384
> http://www.jboss.com/index.html?module=bb&op=viewtopic&t=113362

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list