cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@otego.com>
Subject Re: Property overwriting mechanism
Date Wed, 08 Nov 2006 06:08:17 GMT
On Wed, 8 Nov 2006, Carsten Ziegeler wrote:

> Date: Wed, 08 Nov 2006 06:01:14 +0100
> From: Carsten Ziegeler <cziegeler@apache.org>
> Reply-To: dev@cocoon.apache.org
> To: dev@cocoon.apache.org
> Subject: Re: Property overwriting mechanism
> 
> Giacomo Pati wrote:
>>
>>
>> Leszek Gawron wrote:
>>>> Giacomo Pati wrote:
>>>>> Ok, I think I've found the bug.
>>>>>
>>>>> The CPOC had a section where it was *always* loading the general overwriting
>>>>> properties files. This has lead to the NoSuchBeanDefinitionException
during
>>>>> request handling where a different beanFactory (the one for the sitemap,
not
>>>>> the global one) was used which didn't had the bean trying to overwrite!
>>>>>
>>>>> So far I've committed this fix.
>>>>>
>>>>> Question remaining:
>>>>>
>>>>> Is it necessary to load those property files (probably for the sitemap
>>>>> beanFactory) for each request?
>>>> IMO once the context is up an running it should not be post processed again.
>>
>> I have the same oppinion but during my debugging sessions with the CPOC I've
>> seen that (probably the beanFactory for that sitemap) is processed for each
>> request!
>>
> Strange! When I wrote the CPOC some weeks ago I did not experience these
> problems. It "just worked" :) The post processing is the final phase of
> setting up the application context, so this should happen only once.
> Could it be that now the whole context is instantiated anew on each request?

Honestly I have no idea as I have not changed any code that initiates 
something, juts fixes broken thing.

-- 
Otego AG                                  Tel:   +41 (0)1  240 00 55
Giacomo Pati, CTO                         Mobile:+41 (0)79 262 21 04
Apache Software Foundation Member         Mailto:giacomo@apache.org
Hohlstrasse 216                           Mailto:Giacomo.Pati@otego.com
CH-8004 Z├╝rich                            http://www.otego.com

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message