Hi,
In my application I am connecting MQ using spring. In case of non-SSL connection it works fine. But when I tried SSL connection it is throwing exception. Following are the Spring configuration:
<bean id="JmsTemplate"
class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory"
ref="MQcredentialsconnectionFactory" />
<property name="defaultDestinationName" value="${mq.queueName}" />
<property name="explicitQosEnabled" value="true" />
</bean>
<bean id="MQcredentialsconnectionFactory"
class="org.springframework.jms.connection.UserCred entialsConnectionFactoryAdapter">
<property name="targetConnectionFactory"
ref="MQconnectionFactoryparams" />
<property name="username" value="${mq.userName}" />
<property name="password" value="${mq.userPassword}" />
</bean>
<bean id="MQconnectionFactoryparams"
class="com.ibm.mq.jms.MQQueueConnectionFactory">
<property name="transportType" value="${mq.transportType}" />
<property name="queueManager" value="${mq.queueManager}" />
<property name="hostName" value="${mq.hostName}" />
<property name="port" value="${mq.port}" />
<property name="channel" value="${mq.channel}" />
<property name="SSLCipherSuite" value="SSL_RSA_WITH_3DES_EDE_CBC_SHA" />
</bean>
For ssl connection I have added two new properties.
1. <property name="SSLCipherSuite" value="SSL_RSA_WITH_3DES_EDE_CBC_SHA" />
2. javax.net.ssl.trustStore={path to trustStore}
When I run non-SSL and SSL connection in a JAVA standalone class it works fine.
Exception occurs only in case of SSL connection using Spring.
Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'ent-hubdev1_svc.uk.fid-intl.com:ENTH2D1'; nested exception is com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2059
MQJE013: Error accessing socket streams
Can somebody help what I am missing here? How can I resolve this issue?
Thanks,
Arun


Reply With Quote
