Axis2
  1. Axis2
  2. AXIS2-4586

JiBX Client Stub not cleaning up HTTP connections after each operation

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5.4, 1.6.0
    • Component/s: databinding
    • Labels:
      None
    • Environment:
      Windows XP, Java 5

      Description

      It seems that java/modules/jibx/src/org/apache/axis2/jibx/template/JibXDatabindingTemplate.xsl has a bug. The Stub classes generated for a service using JiBX data binding do not make a call to the method _messageContext.getTransportOut().getSender().cleanup(_messageContext); after each operation. This method is being called in the client stubs generated for services using ADB binding.

      Not calling this method results in the HTTP connection not getting released if the MultiThreadedHttpConnectionManager is being used.

      1. template.patch
        3 kB
        Anuj Bhatia

        Issue Links

          Activity

          Hide
          Andreas Veithen added a comment -

          Applied the patch to the trunk (r1050819) and to the 1.5 branch (r1050833).

          Show
          Andreas Veithen added a comment - Applied the patch to the trunk (r1050819) and to the 1.5 branch (r1050833).
          Hide
          Anuj Bhatia added a comment - - edited

          I propose the attached patch (template.patch) as a fix to this issue

          Show
          Anuj Bhatia added a comment - - edited I propose the attached patch (template.patch) as a fix to this issue
          Hide
          Anuj Bhatia added a comment -

          A similar problem existed in java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl and was resolved by issue AXIS2-3218

          Show
          Anuj Bhatia added a comment - A similar problem existed in java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl and was resolved by issue AXIS2-3218

            People

            • Assignee:
              Unassigned
              Reporter:
              Anuj Bhatia
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development