Uploaded image for project: 'GateIn Portal'
  1. GateIn Portal
  2. GTNPORTAL-2340

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

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.2.0-Beta01
    • Fix Version/s: 3.2.0-CR01
    • Component/s: None
    • Labels:

      Description

      Second thing is not so bad but a bit more tricky. The piece of code in WebAppController:

                    if (!started)
                    {
      
                       RequestLifeCycle.begin(ExoContainerContext.getCurrentContainer());
                       started = true;
                    }
      .....
                    processed = handler.execute(new ControllerContext(this, 
                    router, req, res, parameters));
      .....
                    if (started)
                    {
                       RequestLifeCycle.end();
                    }
      

      This means that we need to start RequestLifeCycle for processing of
      every resource including static resource. And startup of some services
      is quite expensive (like startup of OrganizationService requires startup
      of Hibernate transaction). In other words, currently we are starting
      Hibernate transaction for processing images and other static resources.

        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: