Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-17157

JMS message is not sent from Todo addon application

    XMLWordPrintable

    Details

    • Workaround Description:
      Hide

      Connect to amq-broker pod via terminal
      e.g.

      oc rsh broker-amq-1-q2gz2
      

      and run the particular command:
      5.6. Procedure 3.

      ./broker/bin/artemis producer --user amq --password topSecret --destination queue://inventoryReceived --verbose --message-count 1 --message "$(cat << EOF
      <inventoryReceived>
        <item id="XYZ123" damaged="false" vendor="Good Inc."/>
        <item id="ABC789" damaged="true" vendor="Bad Inc."/>
      </inventoryReceived>
      EOF
      )"
      

      5.6. Procedure 4.

      ./broker/bin/artemis producer --user amq --password topSecret --destination queue://inventoryReceived --verbose --message-count 1 --message "$(cat << EOF
      <inventoryReceived>
        <item id="XYZ123" damaged="true" vendor="Good Inc."/>
        <item id="ABC789" damaged="true" vendor="Bad Inc."/>
      </inventoryReceived>
      EOF
      )"
      

      5.6. Procedure 5.

      ./broker/bin/artemis producer --user amq --password topSecret --destination queue://inventoryReceived --verbose --message-count 1 --message "$(cat << EOF
      <inventoryReceived>
        <item id="XYZ123" damaged="false" vendor="Good Inc."/>
        <item id="1234" damaged="true" vendor="Bad Inc."/>
      </inventoryReceived>
      EOF
      )"
      
      Show
      Connect to amq-broker pod via terminal e.g. oc rsh broker-amq-1-q2gz2 and run the particular command: 5.6. Procedure 3. ./broker/bin/artemis producer --user amq --password topSecret --destination queue: //inventoryReceived --verbose --message-count 1 --message "$(cat << EOF <inventoryReceived> <item id= "XYZ123" damaged= " false " vendor= "Good Inc." /> <item id= "ABC789" damaged= " true " vendor= "Bad Inc." /> </inventoryReceived> EOF )" 5.6. Procedure 4. ./broker/bin/artemis producer --user amq --password topSecret --destination queue: //inventoryReceived --verbose --message-count 1 --message "$(cat << EOF <inventoryReceived> <item id= "XYZ123" damaged= " true " vendor= "Good Inc." /> <item id= "ABC789" damaged= " true " vendor= "Bad Inc." /> </inventoryReceived> EOF )" 5.6. Procedure 5. ./broker/bin/artemis producer --user amq --password topSecret --destination queue: //inventoryReceived --verbose --message-count 1 --message "$(cat << EOF <inventoryReceived> <item id= "XYZ123" damaged= " false " vendor= "Good Inc." /> <item id= "1234" damaged= " true " vendor= "Bad Inc." /> </inventoryReceived> EOF )"
    • Regression Test:
      Todo

      Description

      When I click on `Send JMS Message` in TODO addon, it shows that the ` Message sent successfully` but there is not any message in AMQ Broker in the `inventoryReceived` queue. The AMQ Broker version was changed from AMQ6 to AMQ7 so maybe TODO addon needs some tweaks too.

      ============

      Melissa Flinn Due to this issue, sending messages in the `5.6. Confirming that the AMQ to REST API integration works` chapter from DOC tutorials wouldn't be working as it is described.

      As a workaround, the user can post JMS messages manually like this:

      Connect to amq-broker pod via terminal

      oc rsh broker-amq-1-q2gz2
      

      5.6. Procedure 3.

      ./broker/bin/artemis producer --user amq --password topSecret --destination queue://inventoryReceived --verbose --message-count 1 --message "$(cat << EOF
      <inventoryReceived>
        <item id="XYZ123" damaged="false" vendor="Good Inc."/>
        <item id="ABC789" damaged="true" vendor="Bad Inc."/>
      </inventoryReceived>
      EOF
      )"
      

      5.6. Procedure 4.

      ./broker/bin/artemis producer --user amq --password topSecret --destination queue://inventoryReceived --verbose --message-count 1 --message "$(cat << EOF
      <inventoryReceived>
        <item id="XYZ123" damaged="true" vendor="Good Inc."/>
        <item id="ABC789" damaged="true" vendor="Bad Inc."/>
      </inventoryReceived>
      EOF
      )"
      

      5.6. Procedure 5.

      ./broker/bin/artemis producer --user amq --password topSecret --destination queue://inventoryReceived --verbose --message-count 1 --message "$(cat << EOF
      <inventoryReceived>
        <item id="XYZ123" damaged="false" vendor="Good Inc."/>
        <item id="1234" damaged="true" vendor="Bad Inc."/>
      </inventoryReceived>
      EOF
      )"
      

        Attachments

          Activity

            People

            Assignee:
            zregvart-redhat Zoran Regvart
            Reporter:
            mkralik@redhat.com Matej Kralik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: