I have soothing web services in a Java EE application (ejb3) running on jboss. And I don’t know how to get the username or password programmatically, for example, when the service method is called. I want my members to see how smilar for jaxws
webServiceContext.getUserPrincipal().getName()
or
(httpServletRequest) <-- request.getUserPrincipal()
I would be happy to hear the solutions, thanks.
source
share