Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Securing Destinations with custom LoginCommand implementation with Spring & Database Backend.

Avatar

16-09-2008

All,
I was wondering if anyone had any suggestions on implementing a custom LoginCommand in java that would utilize custom DB-driven authentication. I want to manually query my DB by injecting a DAO into my LoginCommand implementation through Spring. The issue i see, however, is that the LoginCommand won't be created through the Spring Application,... Therefore, it won't be a bean that has the DAO injected into it.

Another possible solution would be able to specify a factory for this class, but i don't see being able to do that in the services-config file, either.

Example:




Custom



But in the CustomLoginCommand i want the dao's injected into it like a service-tier class would in spring.

Any ideas would be appreciated.

Thanks,
Damian