On 26/11/2007, Viswanath Durbha <[EMAIL PROTECTED]> wrote: > > Here is the spring xml that I used to configure MQQueueConnectionFactory with > credentials. The following worked for me. > > > <bean id="webspheremq" > class="org.apache.camel.component.jms.JmsComponent"> > <property name="connectionFactory" ref="myProxyConnectionFactory"/> > </bean> > > <bean id="myProxyConnectionFactory" > class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter"> > <property name="targetConnectionFactory" ref="myConnectionFactory"/> > <property name="username" value="user1"/> > <property name="password" value="password1"/> > </bean> > > <bean id="myConnectionFactory" > class="com.ibm.mq.jms.MQQueueConnectionFactory"> > <property name="hostName" value="mqhost"/> > <property name="port" value="1417"/> > <property name="queueManager" value="QM1"/> > <property name="channel" value="SYSTEM.DEF.SVRCONN"/> > <property name="transportType" value="1"/> > </bean> > > This works for me.
Great stuff thanks! I was wondering of adding the username / password properties to the JMSComponent and if they are both specified, then wrapping the connection factory in the UserCredentialsConnectionFactoryAdapter - which could avoid others scratching their heads trying to figure out how to specify those values. I've raised a JIRA to track it... https://issues.apache.org/activemq/browse/CAMEL-246 -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com