aspose 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
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: 1632
    
    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]
 
jQuery in Action, 2nd edition
 
subject: Setting Spring bean lazy load on multiple files issue
 
Similar Threads
Problem getting Bean reference which is in jar from JSP
Deployement problem in oc4j with hibernate + JPA and Spring
Spring config files inside jar
org hibernate InvalidMappingException : Could not parse mapping document from invalid
Spring MVC dirt-simple app won't work