Thanks DimuthuL for the pointer the following thread. But I am still not clear about the solution there.
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-UserRegistry-sends-null-to-JDBCAuthorizationManager-td73489.html I could retrieve the username from the following mechanism. Will settle down with the following approach for the moment. ((HttpServletRequest) currentMessageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST)).getSession().getAttribute(" wso2carbon.admin.logged.in"); Thanks, Sameera. On Sun, Mar 3, 2013 at 11:31 PM, Sameera Jayasoma <[email protected]> wrote: > Hi Dev, > > I wrote an Axis2 module and its handlers are engaged to the "opPhase" of > the in flow. In this handler I need to get the logged in username. So I use > the following method. It returns null. > > CarbonContext.getCurrentContext().getUsername(). > > But if I invoked the same method inside the service, I get the username > correctly. Please let me know, if anyone know whats happening here. > > Thanks, > Sameera. > > -- > Sameera Jayasoma > Senior Technical Lead > > WSO2, Inc. (http://wso2.com) > email: [email protected] > blog: http://sameera.adahas.org > > Lean . Enterprise . Middleware > -- Sameera Jayasoma Senior Technical Lead WSO2, Inc. (http://wso2.com) email: [email protected] blog: http://sameera.adahas.org Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
