# Prerequisites to Adding an MQSeries Control

Before adding the MQSeries control to the WebLogic Platform, you must complete the following tasks:

1. Install the WebSphere MQSeries client on your machine.
2. Add the com.ibm.mq.jar file from the MQSeries client installation to the system environment CLASSPATH variable.
3. Optionally, enable MQSeries control logging by adding the following code to the workshopLogCfg.xml file:

<category name="com.bea.control.MQControl">
<!-- NOTE: DO NOT CHANGE THIS PRIORITY LEVEL W/O WLI DEV APPROVAL -->
<!-- Debug-level log information is frequently the only tool available to diagnose failures! -->
<priority value="warn"/>
<appender-ref ref="SYSLOGFILE"/>
<appender-ref ref="SYSERRORLOGFILE" />
</category>

The MQSeries control uses the Workshop debugger for logging messages.

Note: To change the log level, refer to the control documents..

4. In WebLogic Workshop, import the com.ibm.mq.jar file from the MQSeries client installation into the Libraries folder of the application where the MQSeries control is used.

Now you can add a new MQSeries control to send and receive messages.