|
From: Andreas R. <and...@ya...> - 2004-10-13 16:34:10
|
Hi,
I have a parent beanfactory with one dao defined as a
singleton ( by default ).
During initialisation it creates a instance of the dao
in the singletoncache.
Now I create a child beanfactory and connect the
parent beanfactory via constructor.
If I call getBean("dao") on the child beanfactory, it
creates an additional instance in the singletoncache
of the child beanfactory.
So there are two instance of the bean which is defined
as singleton.
Is this the correct behavior or is it a fault?
Regards
Andreas
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 100MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|