I think your config looks good. Perhaps spring only creates the connections when there is demand for that many.

Christian

Am 18.02.2012 08:50, schrieb marcin.kasinski:
CXF 2.5.2

Hello.

I have JMS MQ Service.

I wanted to pool MQ connections and / or read messages in parallel.

Problem is that I have problem with configuration.


My configuration is:



        <bean id="jmsConnectionFactory"
class="org.springframework.jms.connection.CachingConnectionFactory">
        
                <property name="targetConnectionFactory">
                                        <bean 
class="com.ibm.mq.jms.MQQueueConnectionFactory">
                        <property name="queueManager" value="${mq.queueManager}" 
/>                   
                        <property name="hostName" value="${mq.hostName}" />
                        <property name="channel" value="${mq.channel}" />
                                                <property name="transportType">
                                                        <util:constant
static-field="com.ibm.mq.jms.JMSC.MQJMS_TP_CLIENT_MQ_TCPIP" />
                                                </property>
                        <property name="port" value="${mq.port}" />
                </bean>
                                </property>
                                
                
</bean>


<bean id="jmsConfig" class="org.apache.cxf.transport.jms.JMSConfiguration"
        p:connectionFactory-ref="jmsConnectionFactory"
                p:targetDestination="MQSI.APPCXFQM1.QIN"
                p:replyDestination="MQSI.APPCXFQM3.QIN"       
                p:concurrentConsumers ="20"   
                p:maxConcurrentConsumers ="20"        
                p:cacheLevel="3"
                p:wrapInSingleConnectionFactory="false"
                
/>

Having this configutation I was expected have 8 connections to MQ, and 20
reading threads.

I've checked MQ . In this configuration I see 3 MQ connections.


Can you help me

I would like to set number of MQ onnection pool and number of service
consumers.


Regards Marcin

-----

Regards
Marcin Kasinski
http://itzone.com.pl
--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-JMS-WebSphere-MQ-Pooling-tp5494890p5494890.html
Sent from the cxf-dev mailing list archive at Nabble.com.


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com

Reply via email to