Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-753

Improve performance of the ChatRoomDemo portlet by registering the PortletHub dependency

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0, 3.0.1
    • 3.1.0
    • demo portlets
    • None

    Description

      Currently the ChatRoomDemo HelloWorldImage.java class adds the PortletHub as a dependency in a header method that gets executed on every request:

      HelloWorldImage.java
      @HeaderMethod(portletNames="*")
      public void header(HeaderRequest req, HeaderResponse resp) throws IOException {
         resp.addDependency("PortletHub", "javax.portlet", "3.0.0");
      }
      

      Performance can be improved by registering the dependency with @PortletConfiguration instead.

      Attachments

        Activity

          People

            ngriffin7a Neil Griffin (Inactive)
            ngriffin7a Neil Griffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: