Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-1707

pageflow parsing is slow

    XMLWordPrintable

Details

    Description

      On a RHEL machine, while deploying a seam based ear, which contains 13 pageflow definitions, the parsing of these 13 pageflow files takes more than 34 minutes .

      The culprit seems to be the usage of the original systemId (http://jboss.com/products/seam/pageflow-2.0.xsd) in the org.jbpm.jdpl.xml.JpdlParser$JpdlEntityResolver class, as this
      apparently results in slow internet lookups:

      log.debug("original systemId as input source");
      inputSource = new InputSource(systemId);

      Using a null InputSource:

      inputSource = new InputSource((InputStream)null);

      brings the parsing time down to less than 1 second.

      Of course it would be better to actually pass in a reference to the local pageflow-2.0.xsd file, which is inside the jboss-seam.jar.

      Attachments

        Issue Links

          Activity

            People

              aguizar_jira Alejandro Guizar (Inactive)
              aguizar_jira Alejandro Guizar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: