Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-274

Running the same CXF consumer on the same port twice leads to undefined runtime behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.1.0-psc-01-00RC1
    • 1.6.1.2-fuse
    • None
    • None

      Normally if you run two different CXF consumers on the same port but under different contexts everything works alright, for example:

      from("cxf:http://localhost:7070?test1?serviceClass=com.fusesource.ts.MyPojo")
          .to("log:POJO1");
      from("cxf:http://localhost:7070?test2?serviceClass=com.fusesource.ts.MyPojo")
          .to("log:POJO2");
      

      However if you accidentally have the same route twice or for some other reason have two routes that use the same port/context like the attached test case the behavior at runtime is a bit undefined. No exception is thrown but the consumer doesn't work properly either, i.e. you can't get a WSDL or invoke on the service successfully.

      Ideally if you specify the same port/context in two different routes in the same Camel context you should get an exception at runtime.

            willem.jiang Willem Jiang (Inactive)
            stlewis_2 Stan Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: