I have one security domain based on custom login module. It is deployed with DynamicLoginConfig in file AppA.ear. Is it possible to use this domain with my second application (AppB.ear)?
I can't put configuration of this login module to $JBOSS_HOME/server/default/conf/login-config.xml because it uses some bean which is deployed with AppA.ear.
Any suggestions or critics :-)
* os: windows xp sp2
* jboss version: 4.2.2.GA
* jdk: 1.5.0_u11
It is possible :-)
Create archive Domain.jar and put in it:
- META-INF/jboss-app.xml - for creating service
- META-INF/login-service.xml - service defining DynamicLoginConfig
- META-INF/login-config.xml - defining login module.
It works for me.