Nav

Solace JMS

The following example demonstrates how to configure Mule to use Solace JMS.


       
    
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<jms:connector name="SolaceJMS" specification="1.1" username="muleuser" password="mulepassword" validateConnections="true" jndiInitialFactory="com.solacesystems.jndi.SolJNDIInitialContextFactory" jndiProviderUrl="smf://69.20.234.126:22234" connectionFactoryJndiName="cf/default" jndiDestinations="true" forceJndiDestinations="true" durable="true" persistentDelivery="true" cacheJmsSessions="true" eagerConsumer="true" doc:name="JMS">
 
        <spring:property name="jndiProviderProperties">
            <spring:map>
                <spring:entry key="java.naming.security.principal" value="muleuser"/>
                <spring:entry key="java.naming.security.credentials" value="mulepassword"/>
                <spring:entry key="Solace_JMS_VPN" value="mule_vpn"/>
            </spring:map>
        </spring:property>
    </jms:connector>
 
<flow name="example1" doc:name="example1"> 
...
    <jms:endpoint topic="topicname" name="JMSTopic" connector-ref="SolaceJMS" doc:name="JMS"/>
...
</flow>
 
<flow name="example1" doc:name="example1">
...
    <jms:endpoint queue="queuename" name="JMSQueue" connector-ref="SolaceJMS" doc:name="JMS"/>
...
</flow>