ibm-mq

Amqmdnet - Is it performant to open/close the queue for each message?

耗尽温柔 提交于 2019-12-08 06:17:03
问题 We have some code to send messages to a queue. It's using the amqmdnet dll version 8.0.0.6. The queue manager (Queuemanager) is instantiated once at the start of the application and used throughout. As messages are sent, a queue object is created and then closed. Should we create a queue object for each message or is it better to use just one instance? We are writing messages only, no reads. Here's some code: public QueueResult Enqueue(string message) { QueueResult result; using (var queue =

MQDestination overriding accounting token value

孤街浪徒 提交于 2019-12-08 05:57:56
问题 I am trying to set the Accounting Token on the a message which my system received from inbound queue. I am setting this token using the following. msg.setObjectProperty(JmsConstants.JMS_IBM_MQMD_ACCOUNTINGTOKEN,value) Also I have the following properties in my JmsSUpport class ((JmsDestination) dest).setBooleanProperty(WMQConstants.WMQ_MQMD_READ_ENABLED, true); ((JmsDestination) dest).setBooleanProperty(WMQConstants.WMQ_MQMD_WRITE_ENABLED, true); ((MQDestination) dest).setMQMDWriteEnabled

IBM MQ issue with cluster queue

て烟熏妆下的殇ゞ 提交于 2019-12-08 05:43:31
问题 Not able to put a message to a cluster queue on a remote queue manager. I am using MQGetMessageOptions and MQPutMessageOptions. I am using 7.5 MQ server and client (7.5.0.1) It throws reason code - 2085- message -CompCode: 2, Reason: 2085 The queue and queue manager are connected using MQ clusters. mqQueue = mqQueueMgr.AccessQueue("queue name", MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_INPUT_SHARED | MQC.MQOO_BROWSE); I tried to put a test message using amqsput.exe it works fine there. Any

How to wrap a JMS to WebSphere MQ bridge in a synchronous call using the request-reply pattern?

偶尔善良 提交于 2019-12-08 05:13:41
问题 I am just dealing with a new scenario for me, which I believe might be common to some :).. As per requirements I need to build a user experience to be like a synchronous on-line transaction for a web service call, which actually delegates the call to a IBM MQ Series using an asynchronous JMS-MQ Bridge. The client calls the web service and than his message should be published in a JMS queue on the App server which will be delivered to WebSphere MQ and than after processing a response will

Multi Instance MQ set up

半腔热情 提交于 2019-12-08 04:55:08
问题 I am trying to set up Multi Instance MQ. I have configured NFS and able to see the active and stand by instances using dspmq -x . However my doubt is after this setup how to proceed further. How can I configure the channel(s). I got CONNAME property should be use for this. e.g. CONNAME(<ip><port>,<ip><port>) . I am not aware how to do it exactly. How many listeners I need to start. For normal mode of MQ, I follow the below steps: 1. crtmqm QM 2. strmqm QM 3. runmqsc QM 4. runmqlsr -m QM -t

Is there anyway to bridge between Azure Service Bus queue and a WebSphere queue?

不羁岁月 提交于 2019-12-08 04:18:02
问题 Is there anyway to bridge between Azure Service Bus queue and a WebSphere queue? Preferably "something" hosted in Azure, rather than an on-premise product 回答1: There is a wiki page How to Send message from an on premise IBM MQ to Azure Service Bus queue which introduce for the needs. You can follow it to create a program, either as a continous web job on Azure if using Azure App Service, or running on Azure VM if you want. If the WebSphere MQ works on network within public IP, I think it's

how to send msg to Websphere MQ with specific reply to MQ MGR using JMS

核能气质少年 提交于 2019-12-08 04:00:40
问题 I need to build a java standalone application with ability to send messages to MQSeries specifying reply-to queue and reply-to MQMgr. I was able to use the code in SimpleP2P example to send a message, but unable to specify the reply-to queue and reply-to MQMgr public static void main(String[] args) { try { MQQueueConnectionFactory cf = new MQQueueConnectionFactory(); cf.setHostName("xyz.com"); cf.setPort(141600); cf.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP); cf.setQueueManager("QMG");

Connecting JMS to MQ using MQClient java and MQExplorer error JMSWMQ2013

青春壹個敷衍的年華 提交于 2019-12-08 03:43:31
问题 I am using MQexplorer to handle queue manager, and when I connect to MQ using JMS with JNDI lookup, using qcf.createQueueConnection(); I am getting JMSWMQ2013: The security authentication was not valid that was supplied for QueueManager error. All posts/blogs mention about this error, but they say to remove CHAUTH for queuemanager and so on... How do I work this out using MQExplorer? Please help me on this! I am using MQ client(with JNDI on LDAP) connection which can connect remote machine

Difference between Queue Manager and Queue in MQ

自闭症网瘾萝莉.ら 提交于 2019-12-08 01:20:28
问题 Looking at the sample codes it seems I need queue manager and queue name to setup MQ through code. What is difference between those and where I can get those values from? Any suggestion? MQTopicConnectionFactory cf = new MQTopicConnectionFactory(); // Config cf.setHostName("localhost"); cf.setPort(1414); cf.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP); cf.setQueueManager("QM_thinkpad"); cf.setChannel("SYSTEM.DEF.SVRCONN"); MQTopicConnection connection = (MQTopicConnection) cf

Authorization Commands in MQ @windows

て烟熏妆下的殇ゞ 提交于 2019-12-07 18:59:26
Below commands done for Authorization in Unix + MQ9. Want to review(is this a correct approach or not?) as well as How below commands can be achieved in Windows server? setmqaut -m TLSTEST.QM -t qmgr -p clientadmin +connect +dsp +inq setmqaut -m TLSTEST.QM -t queue -p clientadmin -n '**' +put +get +browse +dsp +inq runmqsc TLSTEST.QM ALTER AUTHINFO(SYSTEM.DEFAULT.AUTHINFO.IDPWOS) AUTHTYPE(IDPWOS) CHCKCLNT(OPTIONAL) ALTER QMGR CHLAUTH(DISABLED) REFRESH SECURITY TYPE(CONNAUTH) Update on 29-Mar-2017 is setmqaut can be used as only to required is fine as below ,instead of '**'? setmqaut -m TLSTEST