• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring and Acegi

 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to use Acegi in Spring, but there's something I can't figure out.
I'm actually referring to Spring In Action, and it says that there's a way to customize the usersByUsernameMapping property of JdbcDaoImpl.
In the example, there is :



I can't figure out where this usersByUsernameQuery variable comes from. I set it in my JdbcDaoImpl bean, but can't understand how to access it from the custom MappingSqlQuery.

PS: I'm actually using the latest version of Acegi. Quite a lot of changes compared to the version used in the book. For those who own the book, I'm talking about listing 11.1, page 378.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Aaahh, never mind. This seems to be a error in the book, and the latest version of Acegi needs some more tweaking to make the sample work.
For those interested :
https://sandbox.manning.com/thread.jspa?threadID=11419&messageID=39502
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic