8 Replies Latest reply on Dec 19, 2009 4:52 AM by jaikiran pai

    How to get current security domain from a session bean

    J-C jc Apprentice

      I need to get the current security domain from a session bean to be able to read login config options in order not to duplicate this config.

      Is it possible to get the name of the current security domain ?


      This domain is defined either in jboss.xml or by the the SecurityDomain annotation. It looks that it will be able to get this information from applicationMetadata. How can i get Metadata from a session bean ?