You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Reinhard Poetz <re...@apache.org> on 2007/09/17 07:33:15 UTC

Number of Spring configuration files

Daniel Fagerstrom wrote:
> Grzegorz Kossakowski skrev:
>> I see. Last question is about multiple bean declarations in one xml 
>> file. Do we think it's good or
>> bad practise?
> 
> No strong opinion about that. If a couple of beans works togther or are 
> of the same "kind" it seem natural to put them together in one file. 
> Otherwise not. What is your opinion?

I agree with this. Also see 
http://netzooid.com/blog/2007/07/03/tips-for-improving-springs-start-up-performance/: 
Having a lot of XML files means a lot of files to parse which slows down the 
startup.

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------


Re: Number of Spring configuration files

Posted by Joerg Heinicke <jo...@gmx.de>.
On 17.09.2007 3:53 Uhr, Carsten Ziegeler wrote:

> Too many files confuse users, so I would go to put everything in a
> single file and only if it makes sense to split it, start a new file.

+1

Joerg

Re: Number of Spring configuration files

Posted by Carsten Ziegeler <cz...@apache.org>.
Reinhard Poetz wrote:
> Daniel Fagerstrom wrote:
>> Grzegorz Kossakowski skrev:
>>> I see. Last question is about multiple bean declarations in one xml
>>> file. Do we think it's good or
>>> bad practise?
>>
>> No strong opinion about that. If a couple of beans works togther or
>> are of the same "kind" it seem natural to put them together in one
>> file. Otherwise not. What is your opinion?
> 
> I agree with this. Also see
> http://netzooid.com/blog/2007/07/03/tips-for-improving-springs-start-up-performance/:
> Having a lot of XML files means a lot of files to parse which slows down
> the startup.
> 
What's the advantage of having several small xml files compared to one?
Too many files confuse users, so I would go to put everything in a
single file and only if it makes sense to split it, start a new file.

Carsten

-- 
Carsten Ziegeler
cziegeler@apache.org

Re: Number of Spring configuration files

Posted by Felix Knecht <fe...@apache.org>.
Reinhard Poetz schrieb:
> Daniel Fagerstrom wrote:
>> Grzegorz Kossakowski skrev:
>>> I see. Last question is about multiple bean declarations in one xml
>>> file. Do we think it's good or
>>> bad practise?
>>
>> No strong opinion about that. If a couple of beans works togther or
>> are of the same "kind" it seem natural to put them together in one
>> file. Otherwise not. What is your opinion?
>
+1

Felix