ibm-mq

MQ Queue with multiple consumers but only one active

杀马特。学长 韩版系。学妹 提交于 2019-12-04 09:02:12
We have one MQ Queue which receives messages from an external system out of our control. Our system processing the incoming messages is a critical one and needs to be up and running 27x7 no matter what. The order in which the incoming messages are processed is also not negotiable which means we need to process them in exactly the order they arrived. To make sure our system is 100% available we deployed our system to a bunch of physical machines able to process those messages. Once the messages reached our system we put in place a mechanism to make sure the messages processing does not go out

How to read messages in an order from the Queue using MDB?

断了今生、忘了曾经 提交于 2019-12-04 07:47:35
I have a MDB which listens to WebSphere MQ. It does not picks up the messages in the order that has been received by the Queue. How can i make it read it in that order? Is it possible? Should i not use a MDB. In general, WMQ delivers messages in the order that they were received. However, several things can impact that... If the queue is set to priority instead of FIFO delivery and messages arrive in different priorities, they will be delivered "out of order". Distinguish between order produced and order delivered. If the messages are produced on a remote QMgr and there are multiple paths to

My C with MQ receive a message return code 2037

。_饼干妹妹 提交于 2019-12-04 07:14:56
问题 I run the C program, which connect to MQ and try to get a message from it. I always get a message: MQGET ended with reason code 2037 which means that MQ is not opened, but MQOPEN CC=0 RC=0 MQ error log is empty. this is the program #include <stdio.h> #include <stdlib.h> #include <string.h> #include <cmqc.h> /* includes for MQI*/ #include <cmqxc.h> int main(int argc, char **argv) { MQCNO Connect_options = {MQCNO_DEFAULT};/MQNONNX opt*/ MQCD ClientConn = {MQCD_CLIENT_CONN_DEFAULT};/*client

Websphere MQ issue while writing a message to queue from java program

浪子不回头ぞ 提交于 2019-12-04 05:53:07
问题 I am trying to put a message to Queue from a Java program, I am getting an issue where it says it unable to connect to the host & it seems it is not able to read the channel. Here is the error from AMERR01.log ----- amqccita.c : 4113 ------------------------------------------------------- 07/25/2016 07:04:29 AM - Process(18280.26) User(mqm) Program(amqrmppa) Host(ip-10-0-0-238) Installation(Installation1) VRMF(8.0.0.4) QMgr(CSBTS.QUEUE.MANAGER) AMQ9209: Connection to host 'ip-10-0-0-238 (10.0

MQJMS2013 invalid security authentication

故事扮演 提交于 2019-12-04 05:51:37
I am trying to connect to IBM Websphere MQ Server from IBM Websphere Application Server. I am getting the following error: MQJMS2013: invalid security authentication supplied for MQQueueManager What I understand is, this is because of invalid security credentials by WAS while connecting to MQ Manager. I have tried different combination of providing the MQ admin password e.g. Provide J2C authentication to MQ Connection Factory. Provide MQ admin username and password to Queues. Providing Blank username. Combination of all three above. Also, as mentioned in some of the posts, I have tried the

Strange problem with authentication on IBMMQ, it takes the running user ID

本秂侑毒 提交于 2019-12-04 05:18:17
问题 I've got a strange problem when I perform a push of a message in a queue. I've configured my application to read userid/password from app.config. when the message is put on the queue I got the username of the user that has run the application and it's the one of the .config file. The code I use to create the MQQueueManager is private static readonly Lazy<MQQueueManager> lazy = new Lazy<MQQueueManager>(() => { var properties = new Hashtable(); var container = ContainerWrapper.Container;

Need to Access the Queue depth of MQ 7

↘锁芯ラ 提交于 2019-12-04 05:09:16
问题 My Below is the code works good with MQ6 but for MQ7 its giving exception 'package javaapplication1; import java.io.*; import java.net.*; import java.util.*; import java.util.TimerTask; import com.ibm.mq.MQEnvironment; import com.ibm.mq.MQException; import com.ibm.mq.MQQueue; import com.ibm.mq.MQQueueManager; import com.ibm.mq.constants.CMQC; class Connectivity { public static void main(String args[]) throws MQException { String qManager=""; int port_num=0; int openOptions = CMQC.MQOO_FAIL_IF

Message Groups in WebSphere MQ

自古美人都是妖i 提交于 2019-12-04 04:55:26
I have a requirement that I need to process JMS Messages (via MDB) in a way that Messages belonging to a certain group (a group ID is set) are consumed by the same bean instance. The behaviour I require in this is that Messages with the same group ID are processed sequentially (though message ordering is irrelevant), and tying them to the same MDB-instance should provide that. The messages do not carry any kind of sequence number (as it is irrelevant) and we do not know what the first or last message in a group is (there could theoratically "never" be a last message in a group). We want them

WMQ special consideration for WAS clients?

删除回忆录丶 提交于 2019-12-04 04:53:55
问题 We have a WMQ - WAS/JMS client setup through server connection channels where we are trying to put in security through user Ids. Now, we set up a local user id on the MQ box, mquserid , and left the channel's MCAUSER blank. We thought: the id running the MQ client (WAS in our case) wasuserid , when passed to MQ will fail as it is not setup on MQ box. So we shall then set up JAAS alias (with User Id: mquserid) for the Queue connection factory on WAS which will then be passed to MQ and will

WebSphere MQ - Changing channel definition structure using XMS.NET API

拈花ヽ惹草 提交于 2019-12-04 02:24:05
问题 I am trying to set the MQCD structure properties - specifically HeartBeatInterval using XMS.NET API. Background: I have client applications (in .NET) using XMS.NET API to read messages from WebSphere MQ. I use the ClientAcknowledge mode. If the client reads the message and does not ack it, WebSphere MQ waits for 300 seconds before timing out and makes (backout) the message available in the original queue for other clients to read the message. Task: I want to lower the timeout from 300 seconds