i am trying to write a JMS application. i can send a message from a QueueSender to a QueueReceiver with no problem. but is there a way the sender can get a response from the receiver after it sent something out? this would be similar to sending data via socket, where you can get a response back after you sent something out.
the only way i can think of is to instantiate a QueueReceiver object in the QueueSender class, but this makes things complicated as i would also need to create a separate message queue for each sender. Can someone give me some hints? thanks.