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 Murach's Java Servlets and JSP this week in the Servlets 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: 1646
    
    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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting Spring bean lazy load on multiple files issue
 
Similar Threads
Deployement problem in oc4j with hibernate + JPA and Spring
org hibernate InvalidMappingException : Could not parse mapping document from invalid
Spring MVC dirt-simple app won't work
Problem getting Bean reference which is in jar from JSP
Spring config files inside jar