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

camel-cxf - avoid referring Singleton bean instance(CxfEndpoint) while changing its state in different URIs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.18.3
    • 3.20.0
    • camel-cxf
    • None
    • Unknown

    Description

      Having one `cxf:bean:soapClientEndpoint` (with Singleton scope) and following two routes

              from("direct:simpleUriBean")
                      .to("cxf:bean:soapClientEndpoint?dataFormat=PAYLOAD");
      
              from("direct:operandsAdd")
                      .to("cxf:bean:soapClientEndpoint?dataFormat=POJO");
      

      Leads to situation, that invoking route via `direct:simpleUriBean` will use `dataFormat=POJO` instead of PAYLOAD (which reader of that code could expect). Could we somehow detect those misuses of URI options ?

      Eg. printing WARNING: You are using URI option dataFormat which wasn't taken into account because you are using shared bean with Singleton scope.

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            llowinge Lukas Lowinger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: