2 Replies Latest reply on Jun 27, 2003 7:39 AM by Cat

    MDB & JAAS

    Cat Newbie


      I have a trable when try call secured EJB from MDB.
      Secured ELB requires the principal, but MDB hasn't it.
      Couldn't anybody explain as it must be done?

        • 1. Re: MDB & JAAS
          Adrian Brock Master

          You can use <run-as> or do a jaas login.


          • 2. Re: MDB & JAAS
            Cat Newbie

            Thank You for reply, :)
            My problem was represented incorrectly. Really, I used Run-as, but this must be linked to predefined Identity (or Principal, this is not matter).
            If I doesn't define unauthorizedIdentity option in to Login configuration, my MDB couldn't have any Principal and security check throwing the SecurityException on principal validation. Therefore while any request (call) must be authentificated we must having the unauthorized principal (in fact this isn't true in JBoss, but this help pass the principal validation). For this add the corresponding option in to login module configuration. I found this decision and think this will be usefull for anybody.
            Thanx of lot, again... :)
            With best regards, ,,,^.^,,,

            P.S. Excuse me my english... ;)