I have a mdb attached to a listener port of websphere which will read the message from the queue and persist it to database.
Now while sending a request using sessionBean, I added correlation id to the message.
msg.setJMSCorrelationId(theID);
My current MDB code is
onMessage(Message message) {
//it will read the message and insert to db
}
I want my MDB to only listen to the messages which will have the correlation id that i have set while sending the message.
Can someone please suggest how to do this?