cancel
Showing results for 
Search instead for 
Did you mean: 

How to access Portal Logged in user in Web Service application

Former Member
0 Kudos

Hi Experts,

I have created one Deployable Proxy and based on that i have created Web Based (WAR) project. to consume the proxy i have created Servlet based java file which invokes Web services. Based on this WAR project i created EAR application which deploys on J2EE server.

I am facing issue while accessing Portal Logged in user in my Servlet Class in WAR project so can you please provide inputs for how we can access Portal Logged in user in our Servlet class? also how we can access LDAP detailes of portal Logged inuser ?

I tried to fetch the Logged in user from servlet request but i can't access it giving me null value. Following is the method details that i am using in my servlet.

protected void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException

{

IUser user = UMFactory.getAuthenticator().getLoggedInUser();

String strName = user.getFirstName();

.....

.....

.....

}

If I checked in LDAP values First name for logged in user is present but in my code its giving Null value.

Can you please provide your inputs on above issue.

Regards,

Rahul

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

have you found a solution this problem yet?