4 Replies Latest reply on Oct 20, 2017 5:39 AM by Fabi Yo

    Dynamically add security domain with war deployment.

    Fabi Yo Newbie

      I use multiple security domains on my application server with different applications. I don't want to manage the security domains via the standalone.xml.

       

      I found this article: Chapter 7. Dynamic Security Domains

       

      But it is not working at all! Security domain is not recognised. I wonder if the xml at all is used..

       

      I found also this link: Re: How to add or remove roles for a given user?

       

      Interesting topic to add security domain via a java class. But it does not describe how to do it and where to put the Java class, @Singleton? CDI? The topic is a bit outdated also. I was looking for a more modern solution for this. Either deployment xml or Java class is ok.

       

      Anybody who recently had the same issue?

       

      Thanks