1 Reply Latest reply on Apr 26, 2002 6:05 PM by basil

    Setting a container with no security domain

    quasar

      Is it possible in to specify a custom container in the jboss.xml file to have no security-domain when there is a global security-domain. I want to override the global security-domain specified at the tag level, so that one of my EJBs does not require authentication and authorization. All other EJBs should be secured by the global security-domain.

      Thanks,
      Huy

        • 1. Re: Setting a container with no security domain
          basil

          I believe the way to do this is specify that specific bean methods be unchecked. This can be done in the ejb-jar.xml file as follows:

          <ejb-jar>
          ...
          <assembly-descriptor>
          ...
          <method-permission>


          <ejb-name>YourBeanName</ejb-name>
          <method-name>*</method-name>

          </method-permission>

          </assembly-descriptor>
          </ejb-jar>