0 Replies Latest reply on Mar 3, 2009 3:05 PM by Fidel Lagos

    how to identify portal user in a seam portlet

    Fidel Lagos Newbie

      Hi

      I create a seam portlet (using portlet bridge)
      how to identify portal user in a seam portlet ????

      I read in news about PortalIdentity and SSO and code like this

      import org.jboss.portal.identity.UserModule;
      [...]
      (UserModule)new InitialContext().lookup("java:portal/UserModule");

      or this
      userModule = (UserModule)getPortletContext().getAttribute("UserModule");


      but my seam portlet doesn't recognise InitialContext or PortletContex
      hoy I get this reference?

      can I from UserModule get the name of conected user?

      thank for any help

      Fidel Lagos