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
Maybe I didn't ask the right question. I wander to know Is ejbContext.getCallerPrincipal() threadsafe (in the way, that one (single) instance of ejbContext is called simultaneously by two or more users? Or in other words does getCallerPrincipal() return the proper principal?