Yes, the transaction listener should exist in the task before the receive task. It should only contain the code that actually sends the message or contacts the external process.
Here was another post with a similar issue:
Yes, the transaction listener should exist in the task before the receive task. It should only contain the code that actually sends the message or contacts the external process.
Here was another post with a similar issue: