ibm-mq

JMSWMQ2020: Failed to connect to queue manager

十年热恋 提交于 2019-12-11 00:21:44
问题 I'm trying to connect to queue manager using ccdt.tab file. Here is what I tried: String CHANNEL_TABLE_PATH = "/usr/dev/ccdt.tab"; URL chanTableUrl = new URL("file://"+ CHANNEL_TABLE_PATH); connectionFactory.setCCDTURL(chanTableUrl); connectionFactory.setQueueManager("*"); MQQueueConnection connection = (MQQueueConnection) connectionFactory.createQueueConnection(); connection.start(); Here is what inside of my ccdt.tab DIS CHL(*) QMNAME CONNAME Display Channel details. CHANNEL(C.TEST.1)

MQ (Websphere 7) persist message to file system

大兔子大兔子 提交于 2019-12-10 21:23:07
问题 How would I set up MQ so that every message received is immediately written to file system? I have the "redbooks", but at least need someone at least point me to a chapter or heading in the book to figure it out. We are a .NET shop. I have written C# via API to read the queue, and we currently use BizTalk MQ adapter. Our ultimate goal is to write same message to multiple directories in file system to "clone" the feed for our various test environments (DEV, STAGE, TRAINING, etc..). The problem

Trigger Monitor as an MQ Service object - how to get status

隐身守侯 提交于 2019-12-10 19:41:56
问题 I have created an MQ Service object to run my Trigger Monitor thus:- DEFINE SERVICE('TriggerMonitor') + CONTROL(QMGR) + STARTCMD('C:\Program Files (x86)\IBM\WebSphere MQ\bin\runmqtm') + STARTARG('-m TriggerTest -q InitQueue') Even though I set runmqtmc.exe in "Start Command" property it is showing me "Service Status" as Stopping. Is there way to make this runmqtmc running as a background service on windows without having to run it in a command prompt? 回答1: In order to see status of a program

Calling a .EXE from Websphere-MQ

那年仲夏 提交于 2019-12-10 18:46:34
问题 This a follow-up based on MQ (Websphere 7) persist message to file system. How do you set up an .exe program from an MQ support pack (such as the Q utility in MA01) to execute each time a message is received? Can this be setup in MQ Explorer? (We are using 7.0 on Windows 2008/R2). 回答1: There are a few ways to do this. Set the application up under Windows control (since you mentioned the QMgr is on Windows.) The app would run as a service, with recovery options to restart it if the service

Logs in WebSphere MQ

青春壹個敷衍的年華 提交于 2019-12-10 16:08:34
问题 We have messages coming in over a WebSphere MQ queue. It takes a long time before we receive the message. Is there a simple, easy way of tracking when a message gets received/picked up? 回答1: When the message is put, you can request Confirmation on Delivery. When the message is consumed, a report message is delivered to the Reply-To Queue and Reply-To QMgr that were set in the original message. This is relatively easy if you are using the C or Java procedural interfaces or WMQ v7.0 with any

WSMQ Queue Limit

半城伤御伤魂 提交于 2019-12-10 14:53:56
问题 is there a limit on how many queues I can have open within a single connection and single session? I can currently open up 128 queues and send messages to them. If I try to open up 129 I get the following error... Thanks Error: com.ibm.msg.client.jms.DetailedResourceAllocationException: JMSWMQ2008: Failed to open MQ queue 'TestQueue_129'. JMS attempted to perform an MQOPEN, but WebSphere MQ reported an error. Use the linked exception to determine the cause of this error. Check that the

Trying to connect to MQ using PHP; almost there

最后都变了- 提交于 2019-12-10 12:48:52
问题 So I've spent the past few days trying to solve this that seems to have been forgotten since none of the two PECL extensions available (SAM and mqseries) have been updated for a long time. I've tried both and mqseries seems to get me the furthest at this point since SAM refuses to get me a connection, even though MQ works perfectly from the command line. I've successfully created a connection to my QueueManager and it's during the next step (MQOPEN) that I fail miserably: $mqcno = array(

WAS MQ 7.5.x Queue access control

自作多情 提交于 2019-12-10 12:22:50
问题 I have a qmgr QM1 and local queues Q1 and Q2 . There is a SVRCONN channel with MCA set to mqm . There are multiple application connect to my QMGR for example APP1 and App2 . I want App1 only have PUT authority which means ONLY PUT message to Q1 or Q2 and App2 only have GET authority to ONLY GET message from Q1 or Q2 . Is there any advice. 回答1: Each unique set of authorizations needs to be attached to a group. Then when the app connects it needs to do so as a user ID in the appropriate group.

IBM MQ PCF command to collect QAlias details like Target base object name

浪尽此生 提交于 2019-12-10 12:16:26
问题 I was looking to see if there are ways to collect MQ object details other than names using PCF commands. For E.g. If I would like see where a QAlias is pointing to or the Target base object, how do I generate a PCF command to accomplish this?? 回答1: Use the information in the link that Morag gave you and then you need to do something like: agent = new PCFMessageAgent(qMgrName); request = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q); request.addParameter(MQConstants.MQCA_Q_NAME, "*"); request

IBM MQ - FFDC - CSIException: JMSCS0002 when I try to run from console

风流意气都作罢 提交于 2019-12-10 11:45:41
问题 I writed some JAR which has a wrap communication with IBM MQ. When I try use that JAR in other app it works only when I run it in IDE or in console as maven: "C:\Program Files\Apache\maven\bin\mvn.bat" -Dexec.args="-classpath %classpath xx.xxx.xxx.Application" -Dexec.executable="C:\Program Files\Java\jdk1.7.0_71\bin\java.exe" -Dmaven.ext.class.path=C:\Users\myUser\AppData\Roaming\NetBeans\8.0.1\maven-nblib\netbeans-eventspy.jar;C:\Users\myUser\AppData\Roaming\NetBeans\8.0.1\maven-nblib