File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Setting Spring bean lazy load on multiple files issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Setting Spring bean lazy load on multiple files issue" Watch "Setting Spring bean lazy load on multiple files issue" New topic
Author

Setting Spring bean lazy load on multiple files issue

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
Hi,

I have an issue to set the lazy load to true on multiple files. If I do like the followings<





Does it mean the beans defined in B.xml and C.xml are also lazy-init=true?

Please help

Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

See if these links help clarify things:
http://stackoverflow.com/questions/9500188/override-default-lazy-init-true-for-spring-bean-definitions
http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/beans.html#beans-factory-lazy-init

I would discourage lazy initialization in most cases.


[How To Ask Questions][Read before you PM me]
 
wood burning stoves
 
subject: Setting Spring bean lazy load on multiple files issue