1 Reply Latest reply on Oct 5, 2007 7:44 AM by antoine_h

    Jboss Portal 2.6 problems with API login and an URL request

    jhuertas

      Hello there!

      I am using the API of 2.6 UserAuthenticationEvent to catch the login event.
      I need to do a request to a portlet in the login moment, but all my portal are restricted only for an authenticated user, then I tried to do the request (into the onEvent method ) to my portlet using the URL class of java and the URLConnection, and a send the cookie of the session of jboss portal (JSESSIONID).
      When I send a wrong cookie the request returns me the html of the login page(it is right), but when I send the cookie of the actual user (just logged in) the portal doesn't do anything and I don't receive any response of my request, the portal crash.

      is there another way to do it, to call to process action method of a portlet from the onEvent method of the API.

      Thanks a lot!!!

        • 1. Re: Jboss Portal 2.6 problems with API login and an URL requ
          antoine_h

          strange what you are doing
          not sure to have clearly understood how you "call" the portlet, but quite sure it is a wrong idea...

          you may isolate the feature outside the portlet : put it in some independant class, or better, in a JMX service.
          the portlet call this feature when it need it
          the login event also.

          this feature should not need all the portlet stuff... so could be isolated in a JMX service.

          hope it helps,