PDA

View Full Version : XML file size



ftsuan
Nov 30th, 2005, 09:44 AM
Hi there,

I am completely new to Spring and currently is evaluating the possibility of using Spring in my company latest J2EE project. After started reading some material on Spring, I have a few questions that I would like to seek some advice,

1) will the beans.xml file become a maintainence issue as the class created in the project increase and more relationship need to be define?

2) What is the largest size an beans.xml anyone ever encounter?

3) How do u guys manage and maintain the beans.xml as it grow?

Really need this information to help in my evaluation.

Thanks in advance.

cepage
Nov 30th, 2005, 10:02 AM
1) will the beans.xml file become a maintainence issue as the class created in the project increase and more relationship need to be define?

Yes.



2) What is the largest size an beans.xml anyone ever encounter?

You really don't want to let a single beans.xml file grow boundlessly. You will want to compose your app as a collection of smaller beans.xml files.



3) How do u guys manage and maintain the beans.xml as it grow?

The most popular mechanisms are effectively organizing your beans into a collection of beans.xml files, use of autowiring where appropriate, and use of the import mechanism when you need to create derivative files.

But on large applications, maintaining the config files will still be an issue.

ftsuan
Nov 30th, 2005, 10:29 AM
Thanks Corby for the answer. I guess in any large enterprise application, maintaining is always an issue, but Spring just divert the problem from maintaining code update to config xml file update . The advantage in Spring is we can save the part of recompiling when the dependency is injected runtime.

BTW, any recommended tools for maintaining large XML file?