Objective: Demonstrate the capability of working MSMQ transport messages.
Objective: Introduction to switching transports with proxy services
please make sure that the given MSMQ sample is ONLY working on windows environment, since
it invokes Microsoft C++ API for MSMQ via JNI invocation.
Start the Axis2 server and deploy the SimpleStockQuoteService (Refer steps above).
- MSMQ bridging requires JNI invocation and we are shipping two dlls as required for 64bit and 32bit O/S, so make sure that you are downloading the correct one.
Please make sure MQ installed and running for more information please refer http://msdn.microsoft.com/en-us/library/aa967729.aspx.
Make sure that you have installed Visual C++ 2008 (VC9), it works with Microsoft Visual Studio 2008 Express.
For a default MSMQ v4.0 installation, you may place following in the Axis2 transport sender/ listener configuration at
Synapse Configuration for MSMQ,
Invoke the sample as follows,
The sample Axis2 server console will print a message indicating that it has accepted the order as follows,
Above samples works as follows,
- Sending Place stockquote request to the ESB proxy.
- Proxy sends the incoming message to the MSMQ server.
- Another proxy known as ' msmqTest' listening to the MSMQ queue, invoke the message from MSMQ and send to the Aix2 back-end server.