ibm-mq

Authorization errors with MQ8 + JDk8

僤鯓⒐⒋嵵緔 提交于 2019-12-20 05:01:46
问题 when working JMS sample code , placed in application getting below Authorization errors with MQ8 + JDk8 MQException received while attempting reconnect: Reason Code=2035 Exception text: com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2035'. AMQERR01.LOG says AMQ8077: Entity 'clientadmin' has insufficient authority to access object 'TLSTEST.QM'. EXPLANATION: The specified entity is not authorized to access the required object. The following requested permissions are unauthorized:

How to send message to different Queue hosted in different queue manager and hostname in IBM MQ cluster

杀马特。学长 韩版系。学妹 提交于 2019-12-20 04:58:11
问题 My Apache-camel based app is consuming message from one of IBM queue, for e.g. below is the details for connection factory hostname=host1000 QManager=QM1000 Port="some port" Channel="common channel" Camel flow to consume and process and send the response to ReplyQueue which is coming from message header. from(wmq:queue:<INPUT_QUEUE>) .bean("processBean") .bean("beanToSendMsgToReplyQueue") In camel header I am getting below JMSReplyQueue. You can see that it's a different Queue manager and

C# MQ Connect get Error 2035 but Java MQ Connect works well

醉酒当歌 提交于 2019-12-20 04:11:53
问题 I wrote a MQ 7.5 Connection routine in C# as bellow, but gets "2035" Error using IBM.WMQ; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { try { MQEnvironment.Hostname = "192.168.163.63"; MQEnvironment.Port = 1418; MQEnvironment.UserId = "mq"; MQEnvironment.Password = "mq"; MQEnvironment.Channel = "ServerChannel"; MQQueueManager queueManager = new MQQueueManager("QueueManager1418"); } catch (Exception ex) { Console.WriteLine(ex.Message); } Console.ReadKey(); }

How to set ApplicationIdData using MQQueueConnectionFactory?

亡梦爱人 提交于 2019-12-20 04:04:21
问题 Trying to figure out the camel/Spring configuration to set ApplicationIdData using JMS. I know the java way to do it as below, I set MQOO_SET_IDENTITY_CONTEXT using below int putOptions = MQConstants.MQPMO_SET_IDENTITY_CONTEXT; pmo.options =putOptions; and then i set applicationIdData as: MQMessage msg = new MQMessage(); msg.applicationIdData = "SomeId"; msg.writeString(qmessage); queue.put(msg, pmo); Question is, How do I set applicationIdData using JMS/camel/Spring configuration . Below is

IBM MQ - Permissions - Read perspective

好久不见. 提交于 2019-12-20 03:40:27
问题 In order to give read permission to all objects of a queue manager (queues, channels, etc) for monitoring perspective, what command/permission is required. My monitoring client uses java api. Will MQZAO_ALL_ADMIN permission do for this purpose. Can setmqaut be used to set this permission but this command has options like +put , +get, etc not MQZAO_ALL_ADMIN. Currently I am using setmqaut for each queue, etc. with version 8.0.0.4. 回答1: For read only you do not want to use MQZAO_ALL_ADMIN since

How to match MQ Server reply messages to the correct request

狂风中的少年 提交于 2019-12-20 01:08:12
问题 I'm connecting to an IBM Websphere MQ. I want to be able to match the reply message with the correct request message. I've trawled through hundreds of pages to get this and have had no luck. I have a class - MQHandler - which sends a message to one defined queue, and reads the request from another. This works fine, however, if multiple users are using the application at the same time, messages get mixed up. I can't seem to get a method on the receiver to indicate the CorrelationID to match.

How to use JMS Properties on IBM MQ JMS Interface?

谁都会走 提交于 2019-12-19 19:53:28
问题 I'm using MQ JMS interface with MQ 6.0.2. It seems that only pre defined properties are suported and not arbitrary ones. for instance, I can properly getJMSCorrelationID() , getJMSPriority() etc. However, when i set an arbitrary property on the sender: message.setStringProperty("my arbitrary name", "value"); I can't get the property from the message on the receiver: message.getStringProperty("my arbitrary name"); I simply get null . Is there a way to do that as in any JMS implementation, or

JMeter configuration for IBM MQ 8

与世无争的帅哥 提交于 2019-12-19 11:51:30
问题 I am trying to use JMeter to test IBM MQ 8.0 Does anyone have an example (maybe a screenshot) of the various parameters I need? I found several examples, but very inconsistent... More precisely, what should I fill in? QueueConnection Factory? JNDI name Request Queue: some example shows a queue name; some a JNDI name. Now what? JMS selector? Any JMS properties? Any JNDI properties? InitialContext Factory? I assume I want to use "myserver" at port 50000, with user "myuser" and password

MQ client connect to remote MQ server have insufficient authority

我怕爱的太早我们不能终老 提交于 2019-12-19 08:43:51
问题 Now I use the websphere MQ client connect to remote MQ Server(7.0 version) using c#, and occurs a problem of authority,Which is the user running the MQ client application have insufficient authority to access qmgr.Then I use the 'setmqaut' command to grand the user sufficient authority and it works. I think it's not very convenient and must be a better way.May via adding user's IP in MQ Server? But I have no idea how to do it. Any suggestions would be greatly appreciated. Thanks 回答1:

Should the JMSMessageID change between publish and subscribe?

荒凉一梦 提交于 2019-12-19 02:02:29
问题 The JMS 2.0 specification says The JMSMessageID header field contains a value that uniquely identifies each message sent by a provider. ...and... The exact scope of uniqueness is provider defined. It should at least cover all messages for a specific installation of a provider where an installation is some connected set of message routers. The specification does not explicitly state that the JMSMessageID returned from the publish API call must match the one present in the message when it is