Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 38147 invoked from network); 17 May 2004 21:18:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 May 2004 21:18:27 -0000 Received: (qmail 7651 invoked by uid 500); 17 May 2004 21:18:46 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 7629 invoked by uid 500); 17 May 2004 21:18:45 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 7603 invoked by uid 98); 17 May 2004 21:18:45 -0000 Received: from joerg.heinicke@gmx.de by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(213.165.64.20):. Processed in 0.312875 secs); 17 May 2004 21:18:45 -0000 X-Qmail-Scanner-Mail-From: joerg.heinicke@gmx.de via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(213.165.64.20):. Processed in 0.312875 secs) Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by hermes.apache.org with SMTP; 17 May 2004 21:18:45 -0000 Received: (qmail 18185 invoked by uid 65534); 17 May 2004 21:18:11 -0000 Received: from a183069.studnetz.uni-leipzig.de (EHLO gmx.de) (139.18.183.69) by mail.gmx.net (mp021) with SMTP; 17 May 2004 23:18:11 +0200 X-Authenticated: #3483660 Message-ID: <40A92C2B.2030108@gmx.de> Date: Mon, 17 May 2004 23:18:35 +0200 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: de-de, de, en-us, en-gb, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: cocoon 2 offline compile References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On 17.05.2004 22:26, Nanda wrote: > Hi! > > I have few questions on the functioning of cocoon 2.1.2 (or cocoon 2x > in general) and i thought i could seek some help from experts. > > Offline compiling and class loading in cocoon 2. > ------------------------------------------------ > > Previously, I was using couple of cocoon 1 instances sharing a > repository directory and noticed very often some of the pages (their > html content) were out of sync. on instances after a modified > logicsheet (that these pages used) was deployed. Spending several hours > analyzing code, I found that the issue was simply that cocoon 1 did not > support sharing a repository across multiple instances. > (regenerating .java, recompling, reloading classes, reloading > logsicsheets logic does not work with multiple instances case) > > Also deploying logicsheets or xsp pages during peak traffic on cocoon > 1 was a major performance concern. > > It appears that cocoon 2 addresses the above two issues using offline > compiling and offline class loading. Say, have one instance of cocoon > configured to regenerate the .java files and compile them into classes > and let other cocoon instances reload classes at scheduled times or > after server restart. > > However I do not know at this time how to configure a separate cocoon > instance to compile all the possible xsp pages automatically when there > is a change to it or the logicsheets it uses. If anyone has already > configured this, can you post the details here. > > I am assuming that cocoon determines the possible pages to compile > based on sitemap.xmap. Is this true or cocoon 2 has to web crawl a site > to determine the pages? > > Can server instances be configured to reload the classes at certain > scheduled times? If not is there a url based api to force this? Is the compiling on first demand to heavy/unsafe/etc. ? There is no xsp-based crawling AFAIK, only a site-based, but it makes not much sense to use it for getting all XSPs compiled I guess. Joerg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org