All docs
This doc
...
Code Block | ||
---|---|---|
| ||
<transportSender name="msmq"class="org.apache.axis2.transport.msmq.MSMQSender"/> <transportReceiver name="msmq" class="org.apache.axis2.transport.msmq.MSMQListener"> <parameter name="msmq.receiver.host" locked="false">localhost</parameter> </transportReceiver> |
Synapse Configuration for MSMQ,
Code Block | ||||
---|---|---|---|---|
| ||||
<proxy name="msmqTest" transports="msmq" startOnLoad="true"> <target> <inSequence> <property name="OUT_ONLY" value="true"/> <send> <endpoint> <address uri="http://localhost:9000/services/SimpleStockQuoteService"/> </endpoint> </send> </inSequence> <outSequence> <send/> </outSequence> <parameter name="transport.msmq.ContentType">application/xml</parameter> </target> </proxy> <proxy name="StockQuoteProxy" transports="http" startOnLoad="true" trace="disable"> <description/> <target> <endpoint> <address uri="msmq:DIRECT=OS:localhost\private$\msmqTest"/> </endpoint> <inSequence> <property name="FORCE_SC_ACCEPTED" value="true" scope="axis2" type="STRING"/> <property name="OUT_ONLY" value="true" scope="default" type="STRING"/> </inSequence> <outSequence> <log level="custom"> <property name="MESSAGE" value="OUT SEQENCE CALLED"/> </log> <send/> </outSequence> </target> <publishWSDL uri="http://localhost:9000/services/SimpleStockQuoteService?wsdl"/> </proxy> |
...
Code Block |
---|
ant stockquote -Daddurl=http://localhost:8280/services/StockQuoteProxy -Dmode=placeorder -Dsymbol=MSFT |
...
The sample Axis2 server console will print a message indicating that it has accepted the order as follows,
...