Configuring SonicMQ

An example of a configuration for 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.QueueConnectionFactoryBean">
        <property name="xaQueueConnectionFactory" ref="jmsXAConnectionFactory"/>
        <property name="resourceName" value="SonicMQ"/>
    </bean>

    <bean id="jmsQueue" class="progress.message.jclient.Queue">
        <constructor-arg value="MyQueue"/>
    </bean>
Go
r1 - 10 Sep 2008 - 15:32:21 - GuyPardon
This site is powered by the TWiki collaboration platformCopyright © contributing authors and Atomikos. All material on this collaboration platform is the shared property of the contributing authors and Atomikos.
Syndicate this site RSSATOM