I am using Jetspeed 2.0 with wsrp4j consumer talking to a Tomcat instance with 
the wsrp4j producer deployed. When I've logged into Jetspeed, it sends the 
following fragment in the <getMarkup> message:

<userContext>
<userContextKey>admin</userContextKey>
</userContext>

where "admin" is the Jetspeed username. This is what I expect and I've tested 
that Oracle Portal 10g does the same thing.

The question is: how can I get access to the user from within my JSR-168 
portlet?

Looking at the wsrp4j code, the UserContext is placed in a 
DynamicInformationProviderImpl object and this is set as an attribute called 
"org.apache.pluto.portalImpl.DynamicInformationProvider" on the request. 
However, this class does not expose the UserContext. 

The Pluto RenderResponseImpl is extended by WSRPRenderResponseImpl but the same 
isn't done for RenderRequestImpl so getRemoteUser() returns null.

Am I missing something?

Regards,
Terry

Reply via email to