On Wed, 8 Nov 2006, Carsten Ziegeler wrote:

Date: Wed, 08 Nov 2006 06:01:14 +0100
From: Carsten Ziegeler <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
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:[EMAIL PROTECTED]
Hohlstrasse 216                           Mailto:[EMAIL PROTECTED]
CH-8004 Zürich                            http://www.otego.com

Reply via email to