|
From: Anthony F. <ton...@ho...> - 2003-03-10 20:28:32
|
Rod, I'm not sure if you're monitoring the mailing list wrox set up for you. Just in case, this one looked like something you might want to test for with your BeanFactory changes... >From: "Michael Pinard" <B0...@FD...> >Reply-To: "ExpertJ2EE with RodJohnson" ><exp...@p2...> >To: "ExpertJ2EE with RodJohnson" <exp...@p2...> >Subject: [expertj2ee_with_rodjohnson] Endless loop with XmlBeanFactory >example >Date: Mon, 10 Mar 2003 14:16:21 -0500 > > > > > >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 >mp...@fd... >678.474.3085 > > >--- >Change your mail options at http://p2p.wrox.com/manager.asp or >to unsubscribe send a blank email to >lea...@p2.... _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus |