ibm-mq

Connecting to MQ manager get MQ error 2495

我只是一个虾纸丫 提交于 2020-07-07 06:55:10
问题 We have an application that was fully working in staging but when we deploy it on production we are getting MQ error 2495. We are running the application in a Tomcat 8.5 and we are using the same MQ libraries (8.0.0.6). The server OS is Windows. The code for reading the message from the MQ looks like: MQEnvironment.hostname = queueSettings.getServer(); MQEnvironment.channel = queueSettings.getChannel(); MQEnvironment.port = queueSettings.getPort(); MQQueueManager queueManager = new

Apache Camel with IBM MQ

别来无恙 提交于 2020-06-24 11:56:10
问题 Hello has anyone ever used Camel with IBM's MQ. We are looking at possibly using the two products together but have no example of the two products working together. 回答1: The best I have been able to get is documented below, illustrated as a Spring XML application context that itself hosts the CAMEL context and routes. This sample works with the IBM native MQ JCA-compliant resource adapter v7.5, CAMEL 2.16, Spring core 4.2. I have deployed it in Glassfish, Weblogic, and JBoss EAP7 servers. The

JAVA to EBCIDIC Conversion is not happening

纵饮孤独 提交于 2020-06-17 13:59:23
问题 I am trying to get data from one application and send that to another(mainframe) after processing the data. Lets assume I am getting data as "This is from another application", processed the same and processing status as "This data is processed". Final message should be combination of both using encoding(Cp1047) to mainframe application to read the same as 0024 This is from another application 001A This data is processed decimal value of 0024 is 36 (message length + 4 which is hexa value

JAVA to EBCIDIC Conversion is not happening

有些话、适合烂在心里 提交于 2020-06-17 13:58:29
问题 I am trying to get data from one application and send that to another(mainframe) after processing the data. Lets assume I am getting data as "This is from another application", processed the same and processing status as "This data is processed". Final message should be combination of both using encoding(Cp1047) to mainframe application to read the same as 0024 This is from another application 001A This data is processed decimal value of 0024 is 36 (message length + 4 which is hexa value

How to remove default Spring JMS Template headers when sending a message to an MQ?

冷暖自知 提交于 2020-06-16 08:51:37
问题 Using Java/Spring to interact with a WebSphere MQ and trying to send a message to it, Spring keeps adding the following header information to it: RFH Ì ¸MQSTR ¸ <mcd><Msd>jms_text</Msd></mcd> <jms><Dst>queue:///MY.QUEUE.INFORMATION.TEST</Dst><Rto>queue:///MY.QUEUE.INFORMATION.TEST</Rto><Tms>123456789</Tms><Dlv>2</Dlv></jms>BEGINNING_OF_MY_PAYLOAD How would I remove everything and only send my payload? One could refer to my payload in the snippet above as BEGINNING_OF_MY_PAYLOAD . Here's the

MQException: MQJE001: Completion Code '2', Reason '2033' while trying to retreive a message from a queue

限于喜欢 提交于 2020-05-17 08:48:15
问题 I try to catch a message from a queue. Note that the message has a xml content. However, an exception is throw in the block catch (MQException e) while the message is correctly received by the queue. MQException: MQJE001: Completion Code '2', Reason '2033' Please find below code used: import com.ibm.mq.MQMessage import com.ibm.mq.MQGetMessageOptions import com.ibm.mq.MQQueueManager import com.ibm.mq.constants.CMQC import com.ibm.mq.headers.MQRFH2 import com.ibm.MQException def mqProps = new