I'm writing a proof-of-concept that uses ServiceMix with the Ode component.
My question is the following:
Is it possible with the servicemix-jms binding component to read a single
message from a queue (in stead of consume the queue).

My process is the following:
1) SOAP over HTTP request (with indication of which queue it wants a message
from) to the servicemix-http bc 
2) Ode accepts this request and will invoke a
"read-single-message-from-queue" via the servicemix-jms bc
3) Ode then replies with the xml of the message coming from the queue. 

soap-request > HTTP-BC  > ODE-SU > JMS-BC
soap-response (with single  message) < HTTP-BC < ODE-SU < JMS-BC

I did the exercise in OpenESB where one can specify the following in the
concrete part of the jms.wsdl:
<binding name="JMSSolicitedReadBinding" type="tns:JMSSolicitedReadPortType">
        <jms:binding/>
        <operation name="read">
            <jms:operation verb="read" destination="MetaDataQueue"
destinationType="Queue"  transaction="XATransaction" messageSelector=""
timeout="1000"/>
            <input name="input1" />
            <output name="output1">
                <jms:message messageType="TextMessage" textPart="part1" />
            </output>
        </operation>
    </binding>

The jms:operation verb="read" takes a single message from the MetaDataQueue
which then can be used in an assign within the BPEL process.
I know this is possible in OpenESB but I can't seem to find a single example
of this kind of setup.

TIA
-- 
View this message in context: 
http://old.nabble.com/Single-message-jms-read-operation-from-queue-tp28069229p28069229.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to