Uploaded image for project: 'JBoss Enterprise Portal Platform'
  1. JBoss Enterprise Portal Platform
  2. JBEPP-1496

WebAppController needs to start RequestLifeCycle for every processing (including static resource processing)

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.2.0.GA
    • Fix Version/s: 5.2.1.GA
    • Component/s: Portal
    • Labels:
      None
    • Release Notes Text:
      Hide
      PROBLEM: WebAppController needs to start RequestLifeCycle for every processing (including static resource processing). And starting of requestLifeCycle is quite expensive as it requires starting of Hibernate transaction among other things. This means that we need to start Hibernate transaction for processing of images and other static resources, which does not makes sense and it's not ideal from performance perspective.

      SOLUTION: Adding new method to WebRequestHandler class, so handlers can decide if they need to start RequestLifeCycle or not. Handlers for sending requests to portal (like PortalRequestHandler) needs to start transaction, but handlers for processing static resources (like StaticResourceHandler) don't need it. So now we are not starting Hibernate transaction anymore for processing images.
      Show
      PROBLEM: WebAppController needs to start RequestLifeCycle for every processing (including static resource processing). And starting of requestLifeCycle is quite expensive as it requires starting of Hibernate transaction among other things. This means that we need to start Hibernate transaction for processing of images and other static resources, which does not makes sense and it's not ideal from performance perspective. SOLUTION: Adding new method to WebRequestHandler class, so handlers can decide if they need to start RequestLifeCycle or not. Handlers for sending requests to portal (like PortalRequestHandler) needs to start transaction, but handlers for processing static resources (like StaticResourceHandler) don't need it. So now we are not starting Hibernate transaction anymore for processing images.
    • Release Notes Docs Status:
      Not Yet Documented
    • NEEDINFO:
      Nobody

      Description

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mposolda Marek Posolda
                  Reporter:
                  mposolda Marek Posolda
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: