Nav
You are viewing an older version of this section. Click here to navigate to the latest version.

SonicMQ Integration

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


       
    
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?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>
...