ibm-mq

find port number of IBM MQ Queue Manager

依然范特西╮ 提交于 2019-12-24 01:13:33
问题 I have created a queue manager using these commands in a linux machine crtmqm MQ1 strmqm MQ1 runmqsc MQ1 the queue manager is created successfully, i wanted to know on which port is the queue manager MQ1 running, i tried all possible ways netstat -au and also ps -ef command. It looks like it is running on a different port. I am unable to find the correct port number where it is running, could anyone help? 回答1: Use netstat as root with -p option sudo netstat -nltp [sudo] password for root:

Spring integration support for Clustered/high availability IBM MQ manager

让人想犯罪 __ 提交于 2019-12-24 01:05:59
问题 I am using spring integration to connect with the IBM MQ. My spring integration application is connecting successfully with IBM MQ. Now the MQ team made the MQ manager as the clustered manager i.e. queue manager is containing 2 host one active and one passive because if one host is down the passive one will up and running. Below is my spring integration configuration for MQ and I can pass only one host. <bean id="mqQueueConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">

How to set MQMD ApplicationID field via JMS API?

孤街浪徒 提交于 2019-12-24 00:43:49
问题 I'm using the JMS API to send messages to a Websphere MQ server. The application that pulls the messages I create want me to set up the ApplicationID field in the MQMD structure to constant value. I could not find a way in the JMS API to access the MQMD structure The question: Is there a way doing this? if yes then how? If no, then is my only option is to use the MQ java API, instead of JMS API? 回答1: As of v7.0, you can read all the MQMD fields as JMS message properties and can set many of

Connecting to IBM MQ over SSL via .net client

感情迁移 提交于 2019-12-23 20:12:07
问题 I am trying to connect to a MQ server queue via a .NET client. I need to use the certificate for secured communication. Here is the code that I have: MQEnvironment.SSLKeyRepository = "*SYSTEM"; MQEnvironment.ConnectionName = connectionName; MQEnvironment.Channel = channelName; MQEnvironment.properties.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_MANAGED); MQEnvironment.SSLCipherSpec = "TLS_RSA_WITH_AES_256_CBC_SHA"; queueManager = new MQQueueManager(queueManagerName, channelName,

Implementing retry logic in Ibm Websphere MQ with spring

限于喜欢 提交于 2019-12-23 15:36:27
问题 I am working on below configuration for messaging using Spring and Webphere MQ. I have a requirement of implementing retrying logic for a scenario, where I receive a message from the queue and put the message data on to a Elastic search server (search server is non transactional), if the search server is down I have to rollback the message on to the queue again and process the message after some interval of time(for example: 30 seconds) . this retry has to be done for 5 times. after 5 times

MQ security - getting a 2035 on one queue

喜你入骨 提交于 2019-12-23 13:00:48
问题 I have a application that is trying to put a message to a queue(LOG.TRANSACTION.IN) on a remote queue manager. The message ends up failing with a 2035 and is put on the DLQ on the local queue manager. On the local queue manager(QMLOCAL), the application puts the message directly on the SCTQ, since there is no remote queue definition. The application is running under an ID that has full access to MQ. I know that is not ideal, but that is for another discussion. We have an mcauser on the

An error has occurred with the WebSphere MQ JMS connection

旧巷老猫 提交于 2019-12-23 12:44:29
问题 Getting below error with MQ(Message Queue), how to resolve this? Message : com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ1107: A problem with this connection has occurred. An error has occurred with the WebSphere MQ JMS connection. Use the linked exception to determine the cause of this error. Caused by [1] --> Message : com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2009' ('MQRC_CONNECTION_BROKEN'). Caused by [3] --> Message : com

Not able to get response from IBM MQ using JMS application

喜你入骨 提交于 2019-12-23 07:47:39
问题 We communicate with the third party using IBM MQ in request/reply fashion. We send them request and they give us reply. Current we both have a simple java based native IBM MQ application. We are planning to rewrite our code using spring jms. But we are not getting any response back within given time when spring jms is used. We are using JMSTemplate to send or receive messages. I am sharing my code snippet. Am I doing anything wrong here? Any other properties should I set here? // Request Part

How to configure JBOSS connectivity with Websphere SSL enabled MQ?

試著忘記壹切 提交于 2019-12-23 04:54:20
问题 We are using JBOSS EAP 6.3 maintained via openshift. We want to connect with Websphere MQ which is SSL enabled. I am successfully able to connect to non-ssl MQ via JBOSS. But while trying to connect with ssl MQ i am facing below error, Blockquote Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) at sun.security.ssl.Handshaker.activate(Handshaker.java:470) [jsse.jar:1.7.0_79] at sun.security.ssl.SSLSocketImpl

Is it possible to get only the queue names of local and alias queues?

旧时模样 提交于 2019-12-23 04:33:06
问题 I'm currently getting all of the queue names like this: PCFAgent agent = new PCFAgent(this.HostName, this.Port, this.CHANNEL_NAME); PCFParameter[] parameters = { new MQCFST(CMQC.MQCA_Q_NAME, "*"), new MQCFIN (CMQC.MQIA_Q_TYPE, CMQC.MQQT_ALL) }; MQMessage[] responses = agent.send(CMQCFC.MQCMD_INQUIRE_Q_NAMES, parameters); MQCFH cfh = new MQCFH(responses[0]); But I'm also getting remote queues, is there a way to retrive only local and alias queue names? 回答1: As you can specify the queue type,