Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1712

ExchangeListener is called with exchangeSent instead of exchangeAccepted when using sendSync

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3
    • 3.2.4, 3.3.1
    • servicemix-core
    • None

    Description

      I have a very simple process composed as follows:

      CXF-BC Consumer->My component

      The MEP is InOut.
      The problem is that the CXF send too many messages to my component.
      I used a listener to see the messages sent.

      The messages are:

      ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
      INFO - SimpleExchangeListener - Status: Active
      INFO - SimpleExchangeListener - InOut[
      id: ID:192.168.20.106-11de3ccb3eb-4:1
      status: Active
      role: consumer

      ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----

      INFO - SimpleExchangeListener - Status: Active
      INFO - SimpleExchangeListener - InOut[
      id: ID:192.168.20.106-11de3ccb3eb-4:1
      status: Active
      role: provider

      ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)

      INFO - SimpleExchangeListener - Status: Active
      INFO - SimpleExchangeListener - InOut[
      id: ID:192.168.20.106-11de3ccb3eb-4:1
      status: Active
      role: consumer

      ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----

      INFO - SimpleExchangeListener - Status: Done
      INFO - SimpleExchangeListener - InOut[
      id: ID:192.168.20.106-11de3ccb3eb-4:1
      status: Done
      role: consumer

      Attachments

        1. firstProcess_v_0-sa.zip
          3 kB
          Gianfranco Boccalon
        2. SimpleExchangeListener.java
          6 kB
          Andrea Zoppello

        Activity

          People

            gnodet Guillaume Nodet
            gboccalon Gianfranco Boccalon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: