Great, thanks Chris, for some reason I was thinking lazy-init was off by default. That makes sense now. Thanks.

On 1/6/06, Chris Scott < [EMAIL PROTECTED]> wrote:
Hmm, that typeo makes what I wrote totally unclear, sorry. The
default behavior of the bean factory is to create objects only when
asked for them, so if you call getBean('userService'), userService
will be created at that time. Unless, of course, it has already been
created by a previous call to getBean('userService').


On Jan 6, 2006, at 3:06 PM, Chris Scott wrote:

> Lazy-init is ON by default, meaning that the dafault behavior of
> the beanFactory is not only create instances of your beens when you
> ask for them. If you want to have certain beans created when the
> bean factory starts up, you would want to set those beans 'lazy-
> init' attribute to false
>
>
> On Jan 6, 2006, at 10:08 AM, Brian Kotek wrote:
>
>> I didn't see this in the docs so just thought I'd ask. Is there a
>> way to globally turn on and off lazy-init for all of the beans in
>> your service.xml file? To speed up development time, for example,
>> if you're working on a large app but only need a few of the
>> services to load? I know I could maintain a separate development
>> service.xml file but I'd prefer to not maintain two versions if
>> possible. Thanks!
>
>



Reply via email to