Hi Matt, On 21 Oct 2007 at 10:04, Matt Raible wrote:
> On 10/21/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > On the Services tutorial page, there are a couple of lines that I believe > are > > incorrect. In each case, they say: "Open your src/main/webapp/WEB- > > INF/applicationContext.xml and replace the personDao bean with the > > following:". I believe they should say "... replace the personManager > bean..." > > > > The first occurrence is here: > > > > http://appfuse.org/display/APF/Services#Services-personmanagerbean > > This first occurrence is correct. The personDao becomes an anonymous inner > bean: <..> > Notice it also says the following shortly after: > > If you wrote the PersonDao interface and implementation in the previous > tutorial, you'll want to use the following for your personManager bean > definition. If you don't, your PersonDaoTest will fail because there's no > longer an exposed personDao bean. > > <bean id="personManager" > class="org.appfuse.service.impl.GenericManagerImpl"> > <constructor-arg ref="personDao"/> > > </bean> This was my scenario when I went through this part of the tutorial - now I've done quite a bit of stuff since then, but I'd thought I couldn't get this to work without a separate "personDao" definition. I'll recheck that the next time I step through it (should be within 24 hrs). > > and the second is here: > > > > http://appfuse.org/display/APF/Services#Services-implreg > > This one seems as if it could be a bug. It probably should say: > > Open your *src/main/webapp/WEB-INF/applicationContext.xml* file and add a > personManager bean: > > <bean id="personManager" > class="org.appfuse.tutorial.service.impl.PersonManagerImpl"> > <constructor-arg ref="personDao"/> > </bean> Yes, that's what I had to do to make it work. Cheers, Rob Hills Waikiki, Western Australia Mobile +61 (412) 904-357 Fax: +61 (8) 9529-2137 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
