ibm-mq

How to use SetBytesProperty and GetBytesProperty in WebSphere MQ?

巧了我就是萌 提交于 2019-12-13 00:50:11
问题 I have a problem with SetBytesProperty / GetBytesProperty methods pair on MQMessage class (I'm using WebSphere MQ Client 7.0.1.6). I can successfully send sbyte array in property to queue but once I try to get it back in read message I always get null . Here is the simplest code I use to reproduce the issue. [TestFixture] public class MQQueueTests { public const string MessageContent = "<test>This is test message</test>"; [Test] public void PutAndGetMessage() { Environment

How to implement Logical ordering in IBM MQ in Java?

强颜欢笑 提交于 2019-12-13 00:48:37
问题 We have a use case of putting a group of messages with a same groupId but differing by MessageSequenceNumber. This is used to group the messages for a logical ordering so that on the receiver side, receiver can group all of the messages based on group order. I was following the IBM MQ v7.5 Knowledge Center page "Message groups". I have a code written to put the messages : - public boolean writeMessage(String[] messages, String queueName) { Session session = getQueueConnection().createSession

Java connection to WMQ 8

被刻印的时光 ゝ 提交于 2019-12-12 23:32:04
问题 I am trying to get an existing Java application connect to WebSphere MQ 8. This has worked in the past with other versions of Java and WMQ, but with Java 8 and WMQ8, this doesn't want to work. I am getting: handling exception: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) SEND TLSv1.2 ALERT: fatal, description = handshake_failure WRITE: TLSv1.2 Alert, length = 2 called closeSocket() Exception in thread "main" com.ibm.mq

MQSeries CSIException: JMSCS0002 but classpath looks ok for commonservices

社会主义新天地 提交于 2019-12-12 22:17:38
问题 In trying to connect from an MQSeries 7.5 client to a 7.5 local server I'm getting a CSIException: JMSCS0002 which when I look up the error in the IBM codes says: JMSCS0002 The call could not be completed because CommonServices has not been initialized. CommonServices is an internal component and needs to be initialized at startup but has failed. Check that the installation and classpath setup is correct. But both my compile and run classpaths include com.ibm.mq.commonservices.jar, com.ibm

IBM MQ XMS subscription not closing

爱⌒轻易说出口 提交于 2019-12-12 22:05:59
问题 I have an application that uses WebSphere MQ to send data through WebSphere to a datacentre in the Cloud. Part of the functionality is that if the server-side subscriber detects that a message has not been received for 30 minutes, the thread is paused for 5 minutes, and the connection is removed. When it restarts, it reconnects. In practice, I've found that disconnecting has not removed the subscription. When attempting to reconnect, I see this error: "There may have been a problem creating

WebSphere MQ Connection Tuning

纵饮孤独 提交于 2019-12-12 21:52:27
问题 I have an application which uses MDB, activation specifications and Queue Connection Factories to get/put Messages from WMQ. The application expects a max load of 80 tps. Both Websphere Application Server and WMQ are clustered and each application server connects to seperate host and channel. The application onMessage method is implemented in way so that both session and connection gets closed after message is consumed and response is sent. As per our configuration, we have WAS version is 8.5

Get the Correlation ID from MQ as string

帅比萌擦擦* 提交于 2019-12-12 18:20:14
问题 I am setting the Correlation ID while sending the message to MQ. And I need to use the CorrelationID from the COA of the message I pushed for the further processing. I am setting the correlation ID and sending the message to queue using the below code. MQMessage message = createMQMessage("12345"); message.write("Some message to push".getBytes()); queue.put(message); private MQMessage createMQMessage(String corrID){ MQMessage message = new MQMessage(); message.messageFlags = MQConstants.MQMF

Camel The application attempted to use a JMS session after it had closed the session

拜拜、爱过 提交于 2019-12-12 17:08:57
问题 I am new to camel and I am attempting to write an app that bridges Websphere MQ and Active MQ on JBoss EAP 7. The app deploys successfully works, I can drop messages on the Websphere queue, and it gets picked up by Active MQ. However I see error messages in the log showing it is attempting to use a connection after it is open. 15:48:57,814 ERROR [org.jboss.jca.core.connectionmanager.listener.TxConnectionListener] (Camel (camel) thread #1 - JmsConsumer[I0_TEST]) IJ000315: Pool

Is there a way to change the Delivery Mode in PublishJMS processor in Nifi?

烂漫一生 提交于 2019-12-12 16:34:17
问题 ​I am sending messages to IBM MQ using Nifi PublishJMS processor. The Messages have Persistence = Persistent in MQ. I want to change it to Non-Persistent. Is there a property in Nifi PublishJms processor to correct this? Or is it done from the MQ side. I don't have access to MQ servers, I can only check the messages being delivered to the queue. 回答1: At a low level a MQ client applications can specify the following persistence values: MQPER_PERSISTENCE_AS_PARENT (Use the value of the next

JmsTemplate has no send timeout

此生再无相见时 提交于 2019-12-12 16:05:16
问题 I have working JMS application with IBM MQ jars configuration , using spring It works well with correct queue information , but when i give wrong queue information it is hung at LOG.info("SENDING MESSAGE"); jmsTemplate.send(this.getDestination(), messageCreator ); //here I have my Log saying sending message , i am handling org.springframework.jmsexception , but it does not throw.....i think it is hung at that point. I am not able to find any property for jmstemplate for send timeout , only