WebSphere Portal Server - access to pumaUser from a filter

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > June 2007 > access to pumaUser from a filter





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author access to pumaUser from a filter

2007-06-05, 1:21 pm

Hi,

I use Websphere Portal Server 6.0 and I try to get the pumaUser from a filter (javax.servlet.Filter).
Finally, It always return null value.

Here my code :
________________________________________
__________________________________
<b>
Context ctx = new InitialContext();

Name myjndiname = new CompositeName(com.ibm.portal.um.PumaHome.JNDI_NAME);
PumaHome pumaHome = (PumaHome) ctx.lookup(myjndiname);

PumaLocator pumaLocator = pumaHome.getLocator(request);
PumaController pumaController = pumaHome.getController(request);
PumaProfile pumaProfile = pumaHome.getProfile(request);

com.ibm.wps.puma.User pumaUser = (com.ibm.wps.puma.User) pumaProfile.getCurrentUser();

ctx.close();
</b>
________________________________________
___________________________________

I've already succeeded to get pumaUser in my theme (and in a portlet) with the same sample of code.
Perhaps there is something special in a filter, or I do something wrong...

Thanks by advance for any help or suggestion.

Fabrice.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com