# Before You Add an MQSeries Control

Before you add an MQSeries control to WebLogic Platform, you need to 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. Enable MQSeries control logging, by adding the following lines to the workshopLogCfg.xml file:

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

The MQSeries control uses the workshop debugger for logging messages.

Note: You need to enable logging before you start the WebLogic server.

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

Go ahead and add a new MQSeries control to send and receive messages.