Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3838

Predefined configuration handlers executing in different order when server is restarted

      Handler order can change after a reboot, which causes problems when one handler depends on the action of another.

      • Description of the problem
        The flow is basically the following:
        1) the container model is parsed; it can include jaxws configs, which are composed
        of jaxws handler chains, which in turn has one or multiple jaxws handlers
        2) we have add operations for each jaxws handler and jaxws handler
        chain. Each of them starts a service, which builds up the corresponding
        metadata to be later used by jbossws; proper dependencies are set
        between those services, so that for instance the service for a handler
        chain waits for all its handlers' services.
        3) when the service for the handler chain runs, it gets the info from
        the handler services and them in the chain metadata. This is where I get
        unpredictable ordering, as the handler services are run in parallel
      • Solution
        The idea is that we need to derive the handlers' order from the add operation steps, which are executed in the same order they're created in the parser.

      Brian also suggests to use the OperationContext.attach(...) API to pass data between handler invocations within an overall operation execution. All ws subsystem ops during boot are executed as steps within an overall operation. The API works like the attachment stuff that's used a lot in DeploymentUnitProcessors.

            [JBWS-3838] Predefined configuration handlers executing in different order when server is restarted

            Jan Kurik <jkurik@redhat.com> changed the Status of bug 1153960 from VERIFIED to CLOSED

            RH Bugzilla Integration added a comment - Jan Kurik <jkurik@redhat.com> changed the Status of bug 1153960 from VERIFIED to CLOSED

            Jan Kurik <jkurik@redhat.com> changed the Status of bug 1157610 from VERIFIED to CLOSED

            RH Bugzilla Integration added a comment - Jan Kurik <jkurik@redhat.com> changed the Status of bug 1157610 from VERIFIED to CLOSED

            Jan Blizňák <jbliznak@redhat.com> changed the Status of bug 1157610 from ON_QA to VERIFIED

            RH Bugzilla Integration added a comment - Jan Blizňák <jbliznak@redhat.com> changed the Status of bug 1157610 from ON_QA to VERIFIED

            Vaclav Tunka <vtunka@redhat.com> changed the Status of bug 1157610 from MODIFIED to ON_QA

            RH Bugzilla Integration added a comment - Vaclav Tunka <vtunka@redhat.com> changed the Status of bug 1157610 from MODIFIED to ON_QA

            baranowb <bbaranow@redhat.com> changed the Status of bug 1157610 from NEW to MODIFIED

            RH Bugzilla Integration added a comment - baranowb <bbaranow@redhat.com> changed the Status of bug 1157610 from NEW to MODIFIED

            Jan Blizňák <jbliznak@redhat.com> changed the Status of bug 1153960 from ON_QA to VERIFIED

            RH Bugzilla Integration added a comment - Jan Blizňák <jbliznak@redhat.com> changed the Status of bug 1153960 from ON_QA to VERIFIED

            Paul Gier <pgier@redhat.com> changed the Status of bug 1153960 from MODIFIED to ON_QA

            RH Bugzilla Integration added a comment - Paul Gier <pgier@redhat.com> changed the Status of bug 1153960 from MODIFIED to ON_QA

            Kabir Khan <kkhan@redhat.com> changed the Status of bug 1153960 from POST to MODIFIED

            RH Bugzilla Integration added a comment - Kabir Khan <kkhan@redhat.com> changed the Status of bug 1153960 from POST to MODIFIED

            Alessio Soldano <asoldano@redhat.com> changed the Status of bug 1153960 from ASSIGNED to POST

            RH Bugzilla Integration added a comment - Alessio Soldano <asoldano@redhat.com> changed the Status of bug 1153960 from ASSIGNED to POST

            Kabir Khan <kkhan@redhat.com> changed the Status of bug 1153960 from MODIFIED to ASSIGNED

            RH Bugzilla Integration added a comment - Kabir Khan <kkhan@redhat.com> changed the Status of bug 1153960 from MODIFIED to ASSIGNED

              rhn-support-asoldano Alessio Soldano
              rhn-support-dboeren David Boeren
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: