I'm not sure whether this is the right place to discuss this, feel free direct me to the correct place. It occurred to me that login modules would be a lot simpler if they could use dependency injection for things like obtaining data souces and transactions, much like JavaEE components. Obviously this would only work when running inside an application conatiner. Are there any plans for this? Would this even be possible?
I don't have the answer, but I just posted a simular question to the Java EE mailing list (concerning the standardized JASPIC login modules, which JBoss also supports more or less): http://java.net/projects/javaee-spec/lists/users/archive/2013-01/message/40