On the previous step of this tutorial, we created a JMS session. Now, let's add a JMS provider.
-
Select the created session and click Edit on the toolbar.
-
Switch to the Providers tab.
-
Right-click in the Classpath Groups area and select Add Group.
-
In the subsequent dialog, enter
WebSphereMQ
. -
Right-click Library area in the created group and select Add JAR(s).
-
Go to the <WebSphere MQ Installation>\java\lib folder and select the following files:
CL3Export.jar CL3Nonexport.jar com.ibm.mq.headers.jar com.ibm.mq.jar com.ibm.mq.jmqi.jar com.ibm.mq.pcf.jar com.ibm.mqjms.jar dhbcore.jar fscontext.jar jms.jar jndi.jar ldap.jar providerutil.jar rmm.jar -
If the Scan dialog appears, click Scan.
-
The JAR file will be added to the library.
-
Click OK to finish the configuration
Now JMS provider is configured and you can use it to connect to WebSphere server. On the next step we will configure the connection factory that is used to establish the connection.