Contact Us 1-800-596-4880

SonicMQ Integration

The following configuration was tested with versions 6.1 and 7.0 of SonicMQ.

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:spring="http://www.springframework.org/schema/beans"
      xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:jms="http://www.mulesoft.org/schema/mule/jms"
    xsi:schemaLocation="
      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
      http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.0/mule.xsd
      http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/3.0/mule-jms.xsd">

<jms:connector name="jmsSonicMQConnector"
               jndiInitialFactory="com.sonicsw.jndi.mfcontext.MFContextFactory"
               specification="1.1"
               connectionFactoryJndiName="sonic-cf"
               jndiProviderUrl="tcp://localhost:2506"
               username="Administrator"
               password="Administrator">

    <spring:property key="connectionFactoryProperties">
        <spring:map>
            <spring:entry key="clientID" value="clientIDString"/>
            <spring:entry key="connectID" value="connectIDString"/>
            <spring:entry key="connectionURLs" value="somURLStrings here"/>
            <spring:entry key="defaultUser" value="userString"/>
            <spring:entry key="defaultPassword" value="passwordString"/>
            <spring:entry key="prefetchCount" value="10"/>
            <spring:entry key="prefetchThreshold" value="10"/>
            <spring:entry key="faultTolerant" value="true"/>
            <spring:entry key="persistentDelivery" value="true"/>
            <spring:entry key="loadBalancing" value="true"/>
            <spring:entry key="sequential" value="false"/>
        </spring:map>
    </spring:property>

    <spring:property key="jndiProviderProperties">
        <spring:map>
            <spring:entry key="com.sonicsw.jndi.mfcontext.domain" value="Domain1"/>
            <spring:entry key="java.naming.security.principal" value="Administrator"/>
            <spring:entry key="java.naming.security.credentials" value="Administrator"/>
            <!-- optional, default is 30sec -->
            <spring:entry key="com.sonicsw.jndi.mfcontext.idleTimeout" value="5000"/>
        </spring:map>
    </spring:property>

</jms:connector>
...