This section describes how to configure the WSO2 Enterprise Integrator's JMS transport with Microsoft Message Queuing (MSMQ).
Info |
---|
The setup instruction here are only applicable for Windows environments since we invoke Microsoft C++ API for MSMQ via JNI invocations. |
Note |
---|
From the below configurations, do the ones in the axis2.xml file based on the profile you use as follows:
|
The msmq: component in WSO2 EI is a transport for working with MSMQ. This component natively sends and receives directly allocated ByteBuffer instances, allowing access to the JNI layer without memory copying. Using the ByteBuffer created with the method allocateDirect, the native code can directly access the memory. URI format is msmq:msmqQueueName.
Follow the steps below to set up and configure WSO2 EI with MSMQ.
...
4. If you haven't already, download and install WSO2 EI as described in Getting Started .
Setting up the JMS Listener
5. Add the following configuration to <EI_HOME>/conf/axis2/axis2.xml file.
Code Block | ||
---|---|---|
| ||
<transportReceiver name="msmq" class="org.apache.axis2.transport.msmq.MSMQListener"> <parameter name="msmq.receiver.host" locked="false">localhost</parameter> </transportReceiver> |
Setting up the JMS Sender
6. To enable the JMS transport sender, add the following JMS transport listener configuration in <EI_HOME>/conf/axis2/axis2.xml file.
Code Block | ||
---|---|---|
| ||
<transportSender name="msmq" class="org.apache.axis2.transport.msmq.MSMQSender"/> |
Info | ||
---|---|---|
If you get an error message similar to the following when you start the Integration Profile after configuring the JMS transport with MSMQ, you must check whether the
|
Tip |
---|
For details on the JMS configuration parameters used in the code segments above, see JMS Connection Factory Parameters. |
...