Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-605 Upgrade the CAS-Product web application to use JAX-RS
  3. OODT-651

Improve parameter initialization, validation and logging for the CAS-Product JAXRS service

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.7
    • 0.7
    • product server
    • Don't Know (Unsure) - The default level

    Description

      My mentor Rishi Verma noted on OODT-649 that several components used by the new CAS-Product JAX-RS service, such as the file manager client and working directory, are being initialized in the resource classes for every HTTP request. This is inefficient and causes unnecessary overheads, since these parameters (e.g. file manager URL and working directory location) are assumed to be constant while the web application is running (i.e. if they do change, the web application can be restarted to pick up the changes) and separate file manager client instances aren't required for each request.

      Instead it would be better to initialize certain parameters only once when the web application is started up and share them between the resource classes.

      Rishi also suggested that additional validation and logging would make the application more robust and would help developers and users when configuring the web application.

      Attachments

        Activity

          People

            rlaidlaw Ross Laidlaw
            rlaidlaw Ross Laidlaw
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: