Hi everyone,
I have an important question about login modules in GateIn/EPP5.
Now there is a gatein-jboss-beans.xml file which contains definition of 3 login modules
for gatein-domain (default realmName).
Think of this situation:
- we have a set of new portlets and we need to add new login module
- we are using an extension mechanism to deply everything and initialize new portal (we
don't want to touch gatein.ear at all)
- we add a new gatein-jboss-beans.xml in extension .ear (with old + new login modules
defined), now it means that both gatein-jboss-beans.xml (from gatein.ear and from
extension .ear) are used
But it's a problem because you will get an error during startup:
IllegalStateException: gatein-domain is already installed.
Now I know about these options:
1) replace gatein-jboss-beans.xml in gatein.ear with new file
2) have new gatein-jboss-beans.xml in extension .ear and rename file in gatein.ear to
something like: gatein-jboss-beans.xml-backup (it means that only the one from extension
is used)
3) create new portal container with new realmName and define all login modules in new
domain (but in our case we want to extend default portal container)
So the question is if there is some other way how to define new login modules (without
touching gatein.ear)?
Thanks for any help or ideas!
Best regards,
Michal Vančo, JBoss QA
(I have it temporarily done with second option, but I'd like to improve it - I want
only to deploy new .ear and that's all)