Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14117

Mtom cannot be enabled in CxfEnpoint

    XMLWordPrintableJSON

Details

    • Moderate

    Description

      If in Spring Boot application CxfEndpoint bean is created with java configuration and cxfendpoints setMtomEnabled(true) method is used mtom stays disabled.

      This happens also if mtom is enabled through cxfEndpoint.getProperties().put("mtom-enabled", true)

      or by using Camels URI property method to("cxf:bean:myCxfBean?properties.mtom-enabled=true)

      or by using Camels query parameters method to("cxf:bean:myCxfBean?mtomEnabled=true)

       

      I believe that bug is caused  by lines from 130 to 133 in  org.apache.camel.component.cxf.CxfComponent. This block of code explicitly sets mtom state by using endpoints properties, but the properties are already handled and therefore the properties map is empty and mtom is always disabled.

       

      I have added maven project that has unit tests for verifying the problem.

      Attachments

        1. cxf-mtom-tests.zip
          11 kB
          Timo Paananen

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Timizki Timo Paananen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Time Spent - 20m Remaining Estimate - 10m
                  10m
                  Logged:
                  Time Spent - 20m Remaining Estimate - 10m
                  20m