Restore | Raw | History | First | Previous | Next | Last | Close

Configuring SonicMQ

An example of a configuration for Sonic SonicMQ is shown below.

 <bean id="jmsXAConnectionFactory"
       class="progress.message.jclient.xa.XAQueueConnectionFactory">
        <property name="brokerURL" value="tcp://hostname:2510"/>
        <property name="defaultUser" value="username"/>
        <property name="defaultPassword" value="pwd"/>
    </bean>

    <bean id="jmsConnectionFactory"
          class="com.atomikos.jms.AtomikosConnectionFactoryBean" 
                 init-method="init" destroy-method="close">
        <property name="xaConnectionFactory" ref="jmsXAConnectionFactory"/>
        <property name="uniqueResourceName" value="SonicMQ"/>
    </bean>

    <bean id="jmsQueue" class="progress.message.jclient.Queue">
        <constructor-arg value="MyQueue"/>
    </bean>
spacer
Copyright © 2014 Atomikos BVBA. Transaction Management for Extreme Transaction Processing and SOA Environments serving ISV, Commercial, OEM and Open Source Markets
Site map RSS ATOM