Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 19809 invoked from network); 2 Apr 2008 05:25:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 05:25:49 -0000 Received: (qmail 27946 invoked by uid 500); 2 Apr 2008 05:25:45 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 27678 invoked by uid 500); 2 Apr 2008 05:25:44 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 27667 invoked by uid 99); 2 Apr 2008 05:25:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 22:25:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mario@ops.co.at designates 194.152.182.1 as permitted sender) Received: from [194.152.182.1] (HELO mgate.ops.co.at) (194.152.182.1) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 05:25:04 +0000 Received: from smtp.ops.co.at (smtp.int.ops.co.at [172.27.0.4]) by mgate.ops.co.at (OPS Mail Gateway - authorized use only - NO UCE/UBE C=AT L=VIE) with ESMTP id D7466AFE3A for ; Wed, 2 Apr 2008 07:25:15 +0200 (CEST) Received: by smtp.ops.co.at (Postfix, from userid 65534) id 307D86E023F; Wed, 2 Apr 2008 07:25:15 +0200 (CEST) Received: from [172.27.1.104] (lints2.int.ops.co.at [172.27.1.104]) by smtp.ops.co.at (Postfix) with ESMTP id 8B1B86E0234 for ; Wed, 2 Apr 2008 07:25:14 +0200 (CEST) Message-ID: <47F318BA.8000601@ops.co.at> Date: Wed, 02 Apr 2008 07:25:14 +0200 From: Mario Ivankovits User-Agent: Thunderbird 2.0.0.0 (X11/20070418) MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: [Orchestra] Explicit conversation starting and nested conversations References: <44e376e00803311336s5dd3158cm93b3e77bf294ba26@mail.gmail.com> <1206998303.6227.49.camel@simon-laptop> <44e376e00804010457n78373629vf0d7a4cf63d011d3@mail.gmail.com> <47F22AFE.1070003@chello.at> <47F231DD.9060601@gmail.com> <051001c8941b$58608ed0$0921ac70$@com> <47F288AD.8010202@ops.co.at> <47F29A16.80406@gmail.com> In-Reply-To: <47F29A16.80406@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on smtp.ops.co.at X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, hits=-11.9 required=7.0 tests=AWL,BAYES_00, LOCAL_STOCKSPAM1,LOC_SPMSIG_2,RATWR10_MESSID,SARE_TOCC_USER,SMILEY, SPG_MG_BUY autolearn=no version=2.64 Hi! > If you're injecting conversation-scoped beans you're actually > injecting a bean being tied to a specific conversation (i.e. you'd > also have to copy bean definitions just referencing > conversation-scoped beans, not only pages!). This is how spring works, no? You always put a bean in a scope and injection that somewhere else then. The only exception is the "prototype" scope. But this effectively means that this "prototype-scoped" bean shares the same lifetime of the bean it gets injected into. > In my opinion that's a major impact in the architecture of Orchestra > applications! Pretty much exclamation marks, having use-case descriptions would be more helpful to me ;-) I'd like to learn what makes this such a major impact that an Orchestra application needs to be coded differently? What beans do you put into conversation scope? I normally put just backing beans into any Orchestra scope - and you wouldn't share backing beans between pages, would you? Or are you work on service objects? But then Orchestra might not fit well indeed. But I have an idea how this could be solved eventually. Image such a config: The trick is the conversationName here. The only "thing-to-discuss" is that if the pageA bean dies due to no longer being accessed any new instance of this page bean will reuse the same serviceBean instance (given it has not yet timed-out). I still would consider this as feature. You can fix that by using conversation.manual on the service bean too I think. At a start we can support something like that just with API calls (ConversationManager.elevate()) and then lets figure out how orchestra:elevate could be implemented. Volunteers? Ciao, Mario