ibm-mq

IBM MQ Client disconnect after 10 minutes: IBM.XMS.IllegalStateException

╄→гoц情女王★ 提交于 2021-02-10 07:06:53
问题 I am using this example from IBM. I have just copied and pasted the code: https://github.com/ibm-messaging/mq-dev-patterns/blob/master/dotnet/dotNetGet.cs I am connecting to a MQ Server version 9.0.0.5 I am using a console application .Net Framework 4.6.1 The MQ client installed in my local machines is 9.1.0.1 I can see a very strange behavior. The application run normally and it is able to get messages. But it would disconnect after exactly 10 minutes. It is always 10 minutes. This is the

How to generate WebSphere MQ Message from Spring JMS?

不打扰是莪最后的温柔 提交于 2021-02-10 05:18:10
问题 I need to produce queue message in WebSphere MQ message format. By default spring produced the message in JMS format. I have googled and came to know that WebSphere MQ Message format contains MQMD and RFH2 header. No idea how to generate these two from Spring. 回答1: Where Tomcat context.xml is the JNDI provider for MQ, I did it like this: <Resource name="jms/myreqqueue" auth="Container" type="com.ibm.mq.jms.MQQueue" factory="com.ibm.mq.jms.MQQueueFactory" QU="MY.REQ.QUEUE" TC="1" /> Notice the

How to generate WebSphere MQ Message from Spring JMS?

空扰寡人 提交于 2021-02-10 05:13:57
问题 I need to produce queue message in WebSphere MQ message format. By default spring produced the message in JMS format. I have googled and came to know that WebSphere MQ Message format contains MQMD and RFH2 header. No idea how to generate these two from Spring. 回答1: Where Tomcat context.xml is the JNDI provider for MQ, I did it like this: <Resource name="jms/myreqqueue" auth="Container" type="com.ibm.mq.jms.MQQueue" factory="com.ibm.mq.jms.MQQueueFactory" QU="MY.REQ.QUEUE" TC="1" /> Notice the

configuring dead letter queue in WebSphere MQ

浪子不回头ぞ 提交于 2021-02-08 03:36:05
问题 I am using IBM Websphere and MQ in my application and now I wanted to know how I can configure (or) make Websphere understand that there is a dead letter queue say DEAD.QUEUE created in MQ and it should use this queue in case of any failure while processing the messages from Request/ Response queue. I am trying to do this because there is a failed message in the queue which is trying to republish it to the queue again and again. If there is a dead letter queue configured then I guess this

WebSphere MQ Acknowledgement and Reply-To Queue

僤鯓⒐⒋嵵緔 提交于 2021-02-07 08:01:34
问题 We are sending XML text messages via a remote queue definition CLIENT.DATA (transmit queue, send/recv channels etc.) from our queue manager QM_MINE queue manager QM_CLIENT and queue CLIENT.DATA. The message reaches the destination (CLIENT.DATA queue at the client's). The problem at hand is to able to receive acknowledgement messages (exact copy of the message sent) on a local queue CLIENT.DATA.ACK in QM_MINE as soon as messages reaches CLIENT.DATA in QM_CLIENT automatically . I found couple

I need to browse through IBM MQ and get a particular type of message and then remove the message from Queue

假装没事ソ 提交于 2021-02-05 11:51:24
问题 when using a solution provided in the below post : Browse, read, and remove a message from a queue using IBM MQ classes i am getting below error Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI library 'mqjbnd64' was not found. For a client installation this is expected. [3=mqjbnd64] I am new to IBM MQ , but i think it is trying to fing MQ library on my local machine but i want to connect on remote server as MQ is not installed on my machine 回答1: Here is a Java

I need to browse through IBM MQ and get a particular type of message and then remove the message from Queue

a 夏天 提交于 2021-02-05 11:51:09
问题 when using a solution provided in the below post : Browse, read, and remove a message from a queue using IBM MQ classes i am getting below error Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI library 'mqjbnd64' was not found. For a client installation this is expected. [3=mqjbnd64] I am new to IBM MQ , but i think it is trying to fing MQ library on my local machine but i want to connect on remote server as MQ is not installed on my machine 回答1: Here is a Java

Is it possible to have a distributed transaction with IBM MQ and SQL Server in .NET5?

不问归期 提交于 2021-01-29 15:47:12
问题 We are thinking of migrating from .NET Framework 4.0 to .NET 5. In our code we often get a message from an IBM MQ Queue and write it to the database in one transaction, or we read and update the database and write to an IBM MQ Queue in one transaction. The code runs on Windows Server 2012, the database is SQL Server 2016 and we have IBM Websphere version 8.0. The distributed transactions are coordinated by MSDTC. Is it possible to do the same with .NET 5? As far as I know, .NET 5 does not

How to display local queues where curdepth reached its maxdepth in ibm mq

落花浮王杯 提交于 2021-01-29 14:32:29
问题 I want to display all local queues where curdepth reached its maxdepth. I understand that the below where condition in runmqsc will not work. DIS QL(*) WHERE(CURDEPTH EQ MAXDEPTH) I am trying to parse it with sed and awk but not even close as I am no expert in scripting Please help in getting desired output. Thanks 回答1: Isn't this like trying to squeeze a fully blown up balloon into a wine bottle? It would seem far, far simpler to just run a Java/MQ/PCF application to get both the current and

Liberty : Intermediate context does not exist : jms/xyz

你离开我真会死。 提交于 2021-01-29 06:51:59
问题 I am working on migrating ear application to liberty. It is a web appliation that uses JMS with MQ messaging provider. For example in my stage.config.xml, we have following properties: MQQueue(0).CCSID MQQueue(0).baseQueueName MQQueue(0).jndiName MQQueue(0).name MQQueueConnectionFactory(0).CCSID MQQueueConnectionFactory(0).channel MQQueueConnectionFactory(0).connectionPool.ConnectionPool(0).maxConnections MQQueueConnectionFactory(0).description MQQueueConnectionFactory(0).host