What payload is returned from a request to http//localhost.8081/?
Refer to the exhibit.
What payload is returned from a request to http//localhost.8081/?
A . 1
B . 2
C . 3
D . 4
Answer: C
Explanation:
The flow can be described as below.
1) First HTTP POST requets is made in which paylaod is set to 1 and it gets returned to our mail flow.
2) Second call is initiated for JMS Publish Consume JMS: num1 which add 1 to the payload which makes it as 2. Note that pubih consume is a synchronous operation. Hence paylaod is returned to main flow.
3) Third call is initiated for JMS Publish JMS: num2 which add 1 to the payload. Note that pubih is asynchronous operation. Hence paylaod is never returned to main flow. So payload in main flow is still 2. 4) Finally Set Payload increments payload by 1 making payload as 3 which is returned by the flow. Hence option 3 is the correct answer.
Latest MuleSoft Developer I Dumps Valid Version with 235 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund