Pivot
  1. Pivot
  2. PIVOT-822

Get codebase from JNLP files (Web Start)

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:

      Description

      Like Applets (that read codebase from the html page), read the codebase from the related JNLP file (using Web Start) for deploy.
      So in DesktopApplicationContext, make a private static method that tries to get the codebase from Web Start BasicService, and if successful, set the webStartEnabled flag (to be put in ApplicationContext) ... and if possible set the origin property with the retrieved codebase (maybe only when origin is null).

      Verify (with other Pivot Developers) if it's right to require Web Start jar even at compile time (like was some time ago), because some casts are even required in this new code (so all dynamic doesnt' makes sense).

      Then, revert changes to build.properties and build.xml just committed as PIVOT-733 (and maybe even demo.jnlp.xsl to remove the root tag), and maybe make a little change even in LargeData.java (if needed).

        Issue Links

          Activity

          Hide
          Sandro Martini added a comment -

          webstart_flag_applicationcontext.patch is only a part of required changes

          pivot-733_from-406_workaround.patch is the patch to be removed when this new feature will be working

          other patch will be needed and put here asap

          Show
          Sandro Martini added a comment - webstart_flag_applicationcontext.patch is only a part of required changes pivot-733_from-406_workaround.patch is the patch to be removed when this new feature will be working other patch will be needed and put here asap
          Hide
          Sandro Martini added a comment -

          Work note:
          try this with largedata and pivot-demos/assets/10e0.csv , and in DesktopApplicationContext add a private static getCodebase that if origin is null, it will be set with the value from Java Web Start (BasicService).
          Finally, revert changes (for the workaround) in build.properties and build.xml, and maybe even root in (and only) in demo.jnlp.xsl ...

          Show
          Sandro Martini added a comment - Work note: try this with largedata and pivot-demos/assets/10e0.csv , and in DesktopApplicationContext add a private static getCodebase that if origin is null, it will be set with the value from Java Web Start (BasicService). Finally, revert changes (for the workaround) in build.properties and build.xml, and maybe even root in (and only) in demo.jnlp.xsl ...

            People

            • Assignee:
              Sandro Martini
              Reporter:
              Sandro Martini
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development