0 Replies Latest reply on Jul 21, 2008 4:00 AM by Wojciech Górka

    remote user in portlet and servlet

    Wojciech Górka Newbie

      I have eneterprise application with structure like that:

      META-INF(with files: application.xml, jboss-app.xml)

      jboss-app.xml contains following content

      <?xml version="1.0"?>

      In web-app.war in WEB-INF directory there is a file jboss-web.xml with following content

      <?xml version="1.0"?>

      In web-app.war I defined both portlet and servlet. Portlet use servlet to generate some content. I checked that both portlet and servlet get the same session Id.
      But there is a problem to get information about remote user. When I log into portal, in portlet I get remote user (request.getRemoteUser()) but in servlet I get null.

      What I did wrong, or what should I add to my configuration to have possibility to get remote user in both servlet and portlet? I use Jboss-Portal 2.6.3.GA.