ibm-mq

SSLHandshakeException when connection to WebSphere MQ via JMS/JNDI

╄→гoц情女王★ 提交于 2019-12-24 23:12:35
问题 I am in the process of configuring WebSphere MQ and SSL and then connect to it using Java and JMS/JNDI. The version I use is 6.0.1.1. Here are the steps I followed but I can't make it run because I get an SSL exception. Step 1: Configure SSL for MQ Series export JAVA_HOME=/opt/mqm/ssl cd /var/mqm/qmgrs/MYQMGR/ssl # Set up the key repository gsk7cmd -keydb -create -db keydb.kdb -pw password -type cms -expire 1500 -stash # Create a self-signed personal certificate gsk7cmd -cert -create -db

IBM MQ Server Setup to Create CCDT file used by .NET Client

帅比萌擦擦* 提交于 2019-12-24 23:10:54
问题 I need to use CCDT file for MQ.NET client to connect to MQ Server, both are running locally, but got error below. IBM.WMQ.MQException: MQRC_Q_MGR_NAME_ERROR CompCode: 2, Reason: 2058 Please find below the server setup, and MQ.NET client. Server Setup I setup and created CCDT file following the links below: Setting up the server using IBM MQ Explorer Server-connection Channel: LOCAL.DEF.SVRCONN MCA User ID: I tried either omitting it or providing it. And either member of mqm or not of it.

IBM MQ How read one by one message, not all available in a queue manager at once?

旧城冷巷雨未停 提交于 2019-12-24 19:41:39
问题 Now, my app receives all available messages in a Queue manager. I collect them locally and process one by one. Could do I configure it to receive one message, do some work (it can take some time), delete the received message, repeat? Is this behavior possible with IBM MQ? The code was updated function listenToMQ() { const qMgr = inbound.queueManagerName; const qName = inbound.queueName; const connName = inbound.host; const cno = new mq.MQCNO(); const sco = new mq.MQSCO(); const csp = new mq

Executable Jar: JMSCC0091: The provider factory for connection type 'com.ibm.msg.client.wmq' could not be loaded

落花浮王杯 提交于 2019-12-24 14:24:05
问题 I encountered this very weird problem while working on using JMSTemplate to connect to IBM Websphere MQ. The code runs perfectly fine in Eclipse, but when I use shade plugin to package the project and all the dependencies into an Uber jar, I got this error while executing the jar file: com.ibm.msg.client.jms.DetailedJMSException: JMSCC0091: The provider factory for connection type 'com.ibm.msg.client.wmq' could not be loaded. at sun.reflect.GeneratedConstructorAccessor4.newInstance(Unknown

Spring JMS + IBM MQ: How to set message buffer size or wait timeout?

筅森魡賤 提交于 2019-12-24 14:03:12
问题 I'm unable to process large messages from IBM MQ and get the below error: JMSCMQ0001: WebSphere MQ call failed with compcode '1' ('MQCC_WARNING') reason '2080' ('MQRC_TRUNCATED_MSG_FAILED') I'm using the DefaultListenerContainer and not consuming via a MessageConsumer using IBM MQ Java API classes directly. I believe by using IBM MQ JMS API you can specific options before retrieving the message from the queue. But how do I do that with DefaultListenerContainer, is there a system property I

Passing ids in IBM MQ client

大兔子大兔子 提交于 2019-12-24 12:26:28
问题 I read the messages from one queue to another queue. However my correlation ids are not preserved. If the correlation id is "ABC12345" for a message in the import queue, when i put it into the export queue, the value of the correlation id is different. How do i keep the same correlation id between the 2 queues and always have a unique message id? Get: mqQueue.Get(mqMsg); string messageID = Convert.ToString(mqMsg.MessageId); string correlationID = Convert.ToString(mqMsg.CorrelationId); If for

How to set message Id for IBM MQ using java program

怎甘沉沦 提交于 2019-12-24 10:55:53
问题 I am able to set correlation id for IBM mq but unable to set message id for the message the message id I am setting is being overridden by the MQ how to set this message id below one is the code I am trying please help me on this task. Is there any thing I need do in the code??? public static void main(String args[]) { try{ MQQueueConnectionFactory cf = new MQQueueConnectionFactory(); cf.setHostName("xxx"); cf.setPort(4444); cf.setTransportType(1); cf.setQueueManager("xxxx"); cf.setChannel(

JMSWMQ2013 when connecting from WAS to MQ

你。 提交于 2019-12-24 08:39:44
问题 I am trying to create a JMS connection from WebSphere App Server 7, but keep getting JMSWMQ2013 (with MQ reason code 2035). Clearly this is an authentication problem, and I can see many other similar reports so I have a rough idea of the general problem. I'm awaiting feedback from our operations team as to the exact configuration of the channel, however, in the meantime I have one observation that is quite puzzling. If I use WebSphere's JAAS authentication to provide the userid, then I always

Sending message to Multi Instance Queue Manager with XMS

你离开我真会死。 提交于 2019-12-24 06:03:54
问题 Following this post: Get Active QM Instance from Multi Instance Queue Manager and connect I have created a connection XMSFactoryFactory factory = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ); IConnectionFactory connectionProperties = factory.CreateConnectionFactory(); connectionProperties.SetIntProperty(XMSC.WMQ_CLIENT_RECONNECT_OPTIONS, XMSC.WMQ_CLIENT_RECONNECT_Q_MGR); connectionProperties.SetStringProperty(XMSC.WMQ_CONNECTION_NAME_LIST, String.Format("{0}({1}),{2}({3})", element.Host1,

Sending message to Multi Instance Queue Manager with XMS

六眼飞鱼酱① 提交于 2019-12-24 06:03:06
问题 Following this post: Get Active QM Instance from Multi Instance Queue Manager and connect I have created a connection XMSFactoryFactory factory = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ); IConnectionFactory connectionProperties = factory.CreateConnectionFactory(); connectionProperties.SetIntProperty(XMSC.WMQ_CLIENT_RECONNECT_OPTIONS, XMSC.WMQ_CLIENT_RECONNECT_Q_MGR); connectionProperties.SetStringProperty(XMSC.WMQ_CONNECTION_NAME_LIST, String.Format("{0}({1}),{2}({3})", element.Host1,