File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Spring and Acegi Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Spring and Acegi" Watch "Spring and Acegi" New topic
Author

Spring and Acegi

Christophe Verré
Marshal

Joined: Nov 24, 2005
Posts: 14361

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.


[SCBCD Wall of Fame] [My Blog]
All roads lead to JavaRanch
Help Japan. Make a donation.
Christophe Verré
Marshal

Joined: Nov 24, 2005
Posts: 14361

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
 
 
subject: Spring and Acegi
 
Threads others viewed
What else is Spring good for?
[Spring Security] User Login and Password Encryption (sorted)
Consulting Concepts about Security
Spring security framework with fine grained permissions
Struggling with Acegi authentication....
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture