I refer to this example.
How a listenerLatch can be set in a separate Listener/Receiver project that the Sender can refer to determine whether the listener received the message?
Also in general how the Configuration can be shared between two different projects like Sender and Receiver?
Thanks.
You can't - the sender and receiver are independent.
You should test each component separately.