IBMStreams com.ibm.streamsx.jms Toolkit > com.ibm.streamsx.jms 2.0.0 > Developing and running applications that use the JMS toolkit
To create applications that use the JMS toolkit, you must configure either Streams Studio or the SPL compiler to be aware of the location of the toolkit.
source product-installation-root-directory/4.0.0.0/bin/streamsprofile.sh
export STREAMS_MESSAGING_AMQ_HOME="/home/streamsuser/ApacheActiveMQ"
export STREAMS_MESSAGING_WMQ_HOME="/opt/mqm"
After the location of the toolkit is communicated to the compiler, the SPL artifacts that are specified in the toolkit can be used by an application. The application can include a use directive to bring the necessary namespaces into scope. Alternatively, you can fully qualify the operators that are provided by toolkit with their namespaces as prefixes.
export STREAMS_SPLPATH=$STREAMS_INSTALL/toolkits/com.ibm.streamsx.jms
sc -t $STREAMS_INSTALL/toolkits/com.ibm.streamsx.jms -M MyMainwhere MyMain is the name of the SPL main composite. Note: These command parameters override the STREAMS_SPLPATH environment variable.
use com.ibm.streamsx.jms::*;You can also specify a use clause for individual operators by replacing the asterisk (*) with the operator name. For example:
use com.ibm.streamsx.jms::JMSSink;