Hi, I have a single tcp port in which I can connect to and I have a lot of messages coming in. WHat pattern should I use so that I can send messages to the port without making my implementation synchronized.
How can I make my threads wait while waiting for its reply at the same time know that its reply has arrive? Before what we used to do is make the method synchronized, but this time around, we would like to have a thread polling for replies that are arriving... What is the best way to handle this? Thanks Is It Correlation Identifier, Polling Consumer, etc...? One thing I'm not sure is how to make my threads wait Carlo