ibm-mq

IBM MQSeries connection pooling with Tomcat

夙愿已清 提交于 2019-12-10 09:26:56
问题 We are trying to set up a jms connection from tomcat toward IBM MQSeries, with the concern to make connection pooling. We have followed the link below, with the solution suggested : WebSphere MQ connection pooling with Tomcat I don't know how we can manage the different jms connections with the method suggested, we have made tests, and we have noticed that CachingConnectionFactory manage different jms session and not jms connection. I share with you the link below, in which it is explained

How to check whether have message in the queue

眉间皱痕 提交于 2019-12-09 13:59:58
问题 I am using IBM Websphere MQ. I have the queue manager and queue name. Now, I want to check whether the queue has any messages in it? I did not work on this before. Pleas help Please let me know if you need further information! Thanks 回答1: The below code is .NET / amqmdnet - but you might try and convert this in the meantime until a Java dev sees your post. To see if there is a message on the queue, without actually taking it off the queue, use MQC.MQOO_BROWSE on the Queue and IBM.WMQ.MQC

MQDestination overriding accounting token value

别等时光非礼了梦想. 提交于 2019-12-09 03:08:30
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(true); ((MQDestination) dest).setMQMDReadEnabled(true); ((MQDestination) dest).setTargetClient(JMSC.MQJMS

How to correct IBM MQ Error when SSL is enabled

不问归期 提交于 2019-12-08 23:39:19
问题 We have enabled SSL on MQ version '7.1.0.7' OS->'Linux 2.6.32-642.11.1.el6.x86_64' two months back [aug-2016] and its working fine with SSL enabled and disabled mode Java Client uses jdk1.7.0_21 Worked cipher/suite -> SSL_RSA_WITH_RC4_128_SHA <> RC4_SHA_US When I try to connect to a MQ v7.1.0.7 queue manager the application is throwing below error: com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2397'. at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:228)

Message driven bean in C#

主宰稳场 提交于 2019-12-08 13:20:40
问题 Can any one suggest me code to write a message driven bean in C#.net to listen a MQ and process the same. 回答1: XMS will be pretty similar to JMS. This is a "hello, world" example of a message listener in C# using XMS. Please include the reference IBM.XMS.dll from your websphere mq installation. On my windows installation, 32bit, it was c:\Program Files\IBM\WebSphere MQ\bin\IBM.XMS.dll This sample assumes a few hardcoded settings and have no error handling, but I think you get the idea. using

need to add header to message which will be sent to IBM MQ websphere

浪尽此生 提交于 2019-12-08 13:11:22
问题 I am not sure how to add message header to the message which we send to IBM MQ websphere server. Below is code I tried to use but I get exception : Creating Connection to the server qMgr = new MQQueueManager(queueMgr, props); int openOptions = MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_OUTPUT | MQC.MQOO_INQUIRE; queue = qMgr.accessQueue(queueName, openOptions); message = new MQMessage(); Sending the Message public String sendMessage(){ MQPutMessageOptions pmo = new MQPutMessageOptions(); message

Authorization Commands in MQ @windows

懵懂的女人 提交于 2019-12-08 08:07:46
问题 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

How to find MQ listener port on AIX?

情到浓时终转凉″ 提交于 2019-12-08 07:28:57
问题 I have created a queue manager using crtmqm <Queue_manager_name> and then started it using strmqm <Queue_manager_name> I want to find on which port does this Queue manager listen? Is there some command to see this? ps -ef|grep runmqlsr and DISPLAY LSSTATUS(*) give nothing. Can it be that the queue manager is not listening to any port? 回答1: You will need to create a listener after starting the queue manager. The crtmqm command creates default listener for all the supported transport types. It

On Windows - where is a mqji.properties for me to use?

≯℡__Kan透↙ 提交于 2019-12-08 07:02:44
问题 My application is a stand alone Java app, that customers download, install and run. It uses MQ to communicate with a host, which has been working for years. Neither myself nor customers have anything MQ installed on their Windows machines; we include and use com.ibm.mq.jar to do the work. Apparently though, MQ needs a mqji.properties file in the classpath to prevent this : Unable to load message catalog - mqji com.ibm.mq.MQException: Message catalog not found So my question is : Where do I

Spring JMS Template - remove RFH Header information

断了今生、忘了曾经 提交于 2019-12-08 06:38:29
问题 I am currently working on an application that uses Spring's JMS Messaging (JMSTemplate). The application needs to send a message to a mainframe queue that is not able to decipher the "RFH" header that the JMSTemplate appends to the message. Is there a way to entirely remove all the header information progamatically so the mainframe can just get the raw contents of the message without the header? Here is my code... MQQueueConnectionFactory connectionFactory = new MQQueueConnectionFactory();