Wrox Home  
Search P2P Archive for: Go

  Return to Index  

expertj2ee_with_rodjohnson thread: Endless loop with XmlBeanFactory example


Message #1 by "Michael Pinard" <B06M1P@F...> on Mon, 10 Mar 2003 14:16:21 -0500
Michael,

The code that came with the book is now an open source project, at
www.sourceforge.net/projects/springframework. If you'd like to contribute
that would be great; you should also find the codebase is moving forward.

We're shortly planning to make a release.

I did contemplate having cycle checks at one stage, but I don't think I ever
built it in. It would be useful.

Please send me the code you've changed (just the individual methods you
changed, preferably, as AbstractBeanFactory is now in rev 1.4 and a diff
mightn't be helpful).

You might also want to subscribe to the Spring mailing list (on
SourceForge).

Regards,
Rod


----- Original Message -----
From: "Michael Pinard" <B06M1P@F...>
To: "ExpertJ2EE with RodJohnson" <expertj2ee_with_rodjohnson@p...>
Sent: Monday, March 10, 2003 7:16 PM
Subject: [expertj2ee_with_rodjohnson] Endless loop with XmlBeanFactory
example


>
>
>
>
> When setting up the example from the book using the XmlBeanFactory, the
> bean factory initialization process went into an endless loop with the
> following XML due to the circular reference.  I have been able to modify
> the code to allow circular references for singletons by tweaking
> AbstractBeanFactory a bit.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans>
>      <bean name="rod"
>           singleton="true"
>           class="TestBean">
>           <property name="name">Rod</property>
>           <property name="age">31</property>
>           <property name="spouse" beanRef="true">kerry</property>
>      </bean>
>
>      <bean name="kerry"
>           singleton="true"
>           class="TestBean">
>           <property name="name">Kerry</property>
>           <property name="age">34</property>
>           <property name="spouse" beanRef="true">rod</property>
>      </bean>
> </beans>
>
> Thanks,
>
> Michael Pinard
> Federated Systems Group
> mpinard@f...
>  xxx.xxx.xxxx
>
>


  Return to Index