2 Replies Latest reply on Feb 2, 2010 1:58 PM by teknomad

    jboss.xml <mdb-user> and getCallerPrincipal() in onMessage()

      I was advised by the JBoss Messaging forum as follows:


                I know some security API has been updated in AS 5 but don't know the details. Please ask the AS forum for help.

       

                 Howard

       

      So, here is my post again, although there are many subforums:

       

      In JBoss-4.2.2.GA, the use of the <mdb-user> tag in jboss.xml, leads to a matching getCallerPrincipal() when executed in the onMessage() of an MDB.

       

      In JBoss-5.1.0.GA, although the JBoss DTD does not appear to have changed in this area, the same entry (virtually the same EAR file) leads to a getCallerPrincipal() of anonymous i.e. an unauthenticated user.

       

      Have there been any changes of note that would lead to the value of the <mdb-user> tag, not being the caller principal? My intention is to have the getCallerPrincipal() return a specified principal depending on the MDB configuration, as opposed to just anonymous.

       

      Thanks

       

      Joe