1 Reply Latest reply on Feb 16, 2012 9:46 PM by Nan Wu

    is getCallerPrincipal() thread safe?

    Nan Wu Newbie



      I'm new here. so I don't know whether it's the right place to ask this question.


      I was working on a bug these days.

      In my project, 3 thread use the same user account to deploy something to jboss at the same time.

      each thread will first login, then deploy to jboss.

      but one of them may fail at login. And if this happen, one other thead may be effected that when it call the getCallerPrincipal(), null returned.

      so I wander to know is getCallerPrincipal() thread safe?


      can some one help? or tell me where can I get the answer? thanks