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.
But in the CustomLoginCommand i want the dao's injected into it like a service-tier class would in spring.