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
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to