Nav
You are viewing an older version of this topic. To go to a different version, use the version menu at the upper-right. +

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.mulesource.org/schema/mule/core/2.2"
      xmlns:jms="http://www.mulesource.org/schema/mule/jms/2.2"
    xsi:schemaLocation="
      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
      http://www.mulesource.org/schema/mule/core/2.2 http://www.mulesource.org/schema/mule/core/2.2/mule.xsd
      http://www.mulesource.org/schema/mule/jms/2.2 http://www.mulesource.org/schema/mule/jms/2.2/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>