ibm-mq

WebSphere MQ High Connection Count Issue

☆樱花仙子☆ 提交于 2019-12-02 05:40:47
问题 As per our configuration, we have WAS version is 8.5.5.1, IBM MQ version 7.5.0.3. We are using 2 channels to connect to WMQ, one with MAXINST set to 250 and one with 500. SHARECNV is set to 10 for both. Now we have an upper limit of making maximum 1600 connections in a queue manager but we end up crossing that limit after 3-4 days of continuous running of WAS Server. I want to understand how parameters on WAS side affect this count. We are using Queue Connection Factory and Act Spec for

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

泪湿孤枕 提交于 2019-12-02 04:20:26
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; IConfiguration configuration = container.GetInstance<IConfiguration>(); properties.Add(MQC.HOST_NAME_PROPERTY

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

偶尔善良 提交于 2019-12-02 04:18:09
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 this queue manager is from different host but in a clusters environment. JMSReplyTo = queue://QM1012/TEST

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

旧城冷巷雨未停 提交于 2019-12-02 04:02:07
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(); } } } and at the same time/ same machine I wrote bellow JAVA MQ Connection which works well!!! import

How to set ApplicationIdData using MQQueueConnectionFactory?

我们两清 提交于 2019-12-02 03:26:57
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 my current camel configuration. <bean class="org.apache.camel.component.jms.JmsComponent" id=

WMQ special consideration for WAS clients?

懵懂的女人 提交于 2019-12-02 01:22:52
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 allow connections. But, we are able to connect and put messages without the JAAS alias :( I wrote a

Exception in thread “main” java.lang.NoClassDefFoundError: com/ibm/mq/MQException

白昼怎懂夜的黑 提交于 2019-12-01 23:56:56
问题 I'm getting below exception when i run my program as below, java -jar MQprogram.jar I have set classpath correctly which is referring to all required jars , "com.ibm.mq.jmqi.jar" also referred in classpath which has MQException. `Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/MQException Caused by: java.lang.ClassNotFoundException: com.ibm.mq.MQException at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at

Convert String from EBCDIC to Unicode / UTF8

自作多情 提交于 2019-12-01 23:29:31
I'm able to send messages from Java to Websphere MQ on AS400 . If I send messages from WinXP , there is no difference if I use any accessible Locale , including full Language Localization; nor is there a problem with English Locale . Important for correct encoding is only this code line: msgId.characterSet = 1208; Infortunately, it's not valid. There are differences in the case that I want to take the message from MQ Queue . In the case that I get message from MQ Queue from Windows OS (English without any of Language Pack), I'm able to take message from MQ Queue in String form. In the case

IBM MQ - Permissions - Read perspective

两盒软妹~` 提交于 2019-12-01 23:20:48
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. For read only you do not want to use MQZAO_ALL_ADMIN since this would give administrative authority. In terms of setmqaut that is +alladm and provides +chg +clr +dlt

Exception in thread “main” java.lang.NoClassDefFoundError: com/ibm/mq/MQException

空扰寡人 提交于 2019-12-01 21:49:53
I'm getting below exception when i run my program as below, java -jar MQprogram.jar I have set classpath correctly which is referring to all required jars , "com.ibm.mq.jmqi.jar" also referred in classpath which has MQException. `Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/MQException Caused by: java.lang.ClassNotFoundException: com.ibm.mq.MQException at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at