Hi, I have a user defined in RDBMS Realm. I am able to authenticated the user. I am making an EJB call from the web container. When I try to print the Principal name using SessionContext.getCallerPrincipal().getName(), I get the principal name as "system" instead of the user logged in to the application. I understand that I started weblogic server using the userid "system". Is there any way to propagate the user role-name defined in <security-role-assignment> to the EJB container? This is related to my earlier posting about UserManager.setPassword() method call. Thanks again.
I found out why the user identity was not propagated from web container to ejb container. I was using an utility class to create InitialContext with user id "system" all the time before doing JNDI lookup.
The only thing that kept the leeches off of me was this tiny ad:
a bit of art, as a gift, the permaculture playing cards