How to Consume selected messages - Oracle AQJMS
By Raghu Yadav-Oracle on Oct 30, 2008
Set Correlation ID in JMS Client1 code using below statement . Message mesg = m_queueSess.createTextMessage("Test Message"); mesg.setJMSCorrelationID("Fusion"); Use condition as "JMSCorrelationID LIKE 'Fus%'" as second argument in createReceiver API in JMS Client2 code. QueueReceiver m_receiver=m_queueSess.createReceiver(m_queue, "JMSCorrelationID LIKE 'Fus%'"); createReceiver function creates receiver object only if it matches the condition given.