You can embed a .SAR with the config below in your .EAR.
Just put the login-config.xml in the .SAR's META-INF/.
It works in the latest snapshot (3.2.4RC1), but I don't know if it were already in the 3.2.3 package...
<mbean code="org.jboss.security.auth.login.DynamicLoginConfig" name="test:service=SecurityService"> <attribute name="AuthConfig">META-INF/login-config.xml</attribute> <depends optional-attribute-name="LoginConfigService">jboss.security:service=XMLLoginConfig</depends> </mbean>
thanks so much!
looks like its not in 3.2.3, but i'll upgrade to the cvs HEAD for jboss-3.2 to take advantage of this feature.