0 Replies Latest reply on Feb 13, 2012 2:09 AM by xmeteor

    How to inject a security realm?

    xmeteor

      The class org.jboss.as.web.deployment.WebDeploymentService:

       

      class WebDeploymentService implements Service<Context> {

          ...

          private final InjectedValue<Realm> realm = new InjectedValue<Realm>();

       

          public synchronized void start(StartContext startContext) throws StartException {

              ...

              context.setRealm(realm.getValue());

              ...

          }

          ...

      }

       

      We can see "context.setRealm(realm.getValue())"

      Then how should i inject a security realm?

       

      Thanks in advance