Atomikos Forum

Atomikos JMS 3.6.3 - createConnection(user,pwd) ignores auth?

Is there any particular reason why com.atomikos.jms.AtomikosConnectionFactoryBean::createConnection(user,pwd) ignores auth parameters and delegates straight to createConnection()?

In this case, how do we override the user,pwd params so that the jms resource accepts connection? Any workarounds? Underlying JMS provider is Websphere MQ. I couldnt find any way of setting the user, pwd attributes on MQXAQueueConnectionFactory.

<bean id="jmsConnectionFactory"
        class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter">
        <property name="targetConnectionFactory">
            <bean class="com.atomikos.jms.AtomikosConnectionFactoryBean"
                init-method="init">
                <property name="xaConnectionFactory">
                    <bean class="com.ibm.mq.jms.MQXAQueueConnectionFactory">
                        <property name="transportType" value="${jms.transportType}" />
                        <property name="hostName" value="${jms.hostName}" />
                        <property name="port" value="${jms.port}" />
                        <property name="channel" value="${jms.channel}" />
                        <property name="queueManager" value="${jms.queue.manager}" />
                        <property name="SSLCipherSuite" value="${jms.ssl.cipherSuite}" />
                    </bean>
                </property>
                <property name="minPoolSize" value="${jms.mq.min.poolsize}"/>
                <property name="maxPoolSize" value="${jms.mq.max.poolsize}"/>
                <property name="uniqueResourceName" value="${jms.queue.manager}_MQSeries_XA_RMI"  />
            </bean>
        </property>
        <property name="username" value="USER" />
        <property name="password" value="PWD" />
    </bean>

Thanks,
Amar
Amar Phadke Send private email
Friday, July 30, 2010
 
 
Hi,

Setting the MQ property 'clientID' should work - no password is required AFAIK (or this is set on the server-side somehow, but the MQ admin).

HTH
Guy Pardon Send private email
Monday, August 02, 2010
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics