Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 91940 invoked from network); 8 Sep 2004 19:06:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Sep 2004 19:06:59 -0000 Received: (qmail 40992 invoked by uid 500); 8 Sep 2004 19:06:47 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 40826 invoked by uid 500); 8 Sep 2004 19:06:45 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 40738 invoked by uid 99); 8 Sep 2004 19:06:44 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of leo.sutic@gmail.com designates 64.233.170.205 as permitted sender) Received: from [64.233.170.205] (HELO mproxy.gmail.com) (64.233.170.205) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Sep 2004 12:06:43 -0700 Received: by mproxy.gmail.com with SMTP id 75so386132rnl for ; Wed, 08 Sep 2004 12:06:41 -0700 (PDT) Received: by 10.38.22.67 with SMTP id 67mr612780rnv; Wed, 08 Sep 2004 12:06:40 -0700 (PDT) Received: by 10.38.81.33 with HTTP; Wed, 8 Sep 2004 12:06:40 -0700 (PDT) Message-ID: Date: Wed, 8 Sep 2004 21:06:40 +0200 From: Leo Sutic Reply-To: Leo Sutic To: dev@cocoon.apache.org Subject: Re: Sharing cocoon.jar between multiple web aplications In-Reply-To: <5FF0E7A2-01C5-11D9-8632-000A95AC787E@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <4C47FFB0CC6A2E4D92550B89B68FC7830170C84B@s2-ba.asset-internal> <5FF0E7A2-01C5-11D9-8632-000A95AC787E@apache.org> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Wed, 8 Sep 2004 14:32:01 -0400, peter royal wrote: > On Sep 8, 2004, at 11:17 AM, =C4=8EURDINA Michal wrote: > > The problem arise only when one web application calls other web > > application to generate its output (via getRequestDispatcher.include() > > - crosscontext must be enabled). Then both webapps use the same static > > field instance in the same thread. And if both are calling method on > > the same class i.e. Cocoon.process(), then called web application can > > rewrite the value saved by calling web application. >=20 > ah, gotcha. >=20 > why not just put cocoon.jar per-webapp then, and put the rest of the > deps at the ear level? :) Because the other deps may include cocoon components (generators etc). The cocoon jar will suck all the other libs with it. The problem seems to be that the stack is assumed to be empty at start of processing, otherwise it doesn't matter. Would it be possible to instead put some kind of "barrier" on the stack at startProcessing, and remove it at endProcessing? It would be empty to the thread handling the request, because it can't see beyond the barrier. /LS