Hi James, Bish,
You need to create a Producer and Consumer in both the sender and receiver that are subscribed to the same queue. Then you should be golden.

So in pseudo code you'd have this in both

Queue x("mytopic") MessageProducer y( x ) MessageConsumer z( x )

It would look like this

for sender to receiver Sender->senderproduer->receiverconsumer->receiver

for receiver back to send Receiver->receiverproducer->senderconsumer->sender

Makes Sense?

Yes, I have create sender and receiver like the above and they are communecating each other bi-directionally but whenever I stop the receiver then sender is not getting responce from receiver, this is shows the sending message only. This is because we are using the single Queue for sending and receiving the data and we are setting the MessageListener on that queue thats why I am unable to maitain the persistence. Pls tell me the best way in which I can maintain the persistence as well as the single queue so that I can delever my project ASAP.
       Thanks in advance.


Thanks & Regards
Arashad Ahamad

Reply via email to