How to create TopicConnectionFactory for MQSeries in Spring?

I read the article http://techtots.blogspot.com/2010/01/connecting-to-mq-using-spring-without.html about setting up QueueConnectionFactories and works well with this side.

# MQ related values
mq.jms.qcf=QM_Epsilon
mq.jms.request.queue=TEST.REQUEST.QUEUE

# Connection details
mq.host.url=localhost:1414/SYSTEM.DEF.SVRCONN
mq.factoryclass=com.ibm.mq.jms.context.WMQInitialContextFactory

# Authentication details
mq.auth=simple
mq.user=******
mq.password=********

<bean id="queueConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="${mq.jms.qcf}" />
    <property name="resourceRef" value="false" />
    <property name="jndiEnvironment">
        <props>
            <prop key="java.naming.factory.initial">${mq.factoryclass}</prop>
            <prop key="java.naming.provider.url">${mq.host.url}</prop>
            <prop key="java.naming.security.authentication">${mq.auth}</prop>
            <prop key="java.naming.security.principal">${mq.user}</prop>
            <prop key="java.naming.security.credentials">${mq.password}</prop>
        </props>
    </property>
</bean>

Using this configuration, the queueConnectionFactory bean is easily injected into my classes as an MQQueueConnectionFactory .

/, , , MQTopicConnectionFactory . , , MQ, MQTopicConnectionFactory MQQueueConnectionFactory.

+5
1

WMQInitialContextFactory - , JNDI WebSphere MQ. , .bindings LDAP, , JNDI. JNDI-, JMS IBM. , . .

, WMQInitialContextFactory , WebSphere MQ, factory, , , WebSphere MQ. , , , WMQ .. , JNDI, , , factory .

, IBM JMSAdmin MQInitialContext ConnectionFactory , .

WebSphere MQ JMS JMS 1.1 ConnectionFactory Destination. JMS 1.0.

IBM WMQ JMS SupportPac MQC7. , jar. , , , .. jar.

.bindings( ) WMQInitialContextFactory, WebSphere MQ Explorer SupportPac MS0T. , WMQ Explorer . ( QueueConnectionFactory TopicConnectionFactory, .) WMQ Explorer : , JMS

, IBM JMSAdmin .bindings, Java WebSphere MQ V6.0. ( JMSAdmin WMQ, , MS0T WMQ, .) JMSAdmin : WebSphere MQ JMS

, , IBM: WebSphere MQ JMS

+4

All Articles