mq

Sending Files using Active MQ with BlobMessage

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have an requirement in my application to send files from one application to another over HTTP/FTP protocol. I found following link which tells that the same can be done using Active MQ with supoort of Blob messages: activemq.apache.org/blob-messages.html I configured ActiveMq 5.8 on my windows machine, included required dependency for ActiveMQ lib in my pom.xml and i am able to send the simple javax.jms.TextMessage and javax.jms.MapMessage with org.springframework.jms.core.JmsTemplate But while i moved to send BlobMessage using

IBM MQ Message Listener

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi does anyone know how to create a message listener using IBM MQ? I know how to do it using the JMS spec but I am not sure how to do it for IBM MQ. Any links or pointers are greatly appreciated. 回答1: Although there is a WMQ Java API as noted by the previous responders, WMQ supports JMS as well so here are some resources to get you started there. Take a look at this article: IBM WebSphere Developer Technical Journal: Running a standalone Java application on WebSphere MQ V6.0 Also, if you have installed the full WMQ client and not just

Spring Batch - Not all records are being processed from MQ retrieval

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am fairly new to Spring and Spring Batch, so feel free to ask any clarifying questions if you have any. I am seeing an issue with Spring Batch that I cannot recreate in our test or local environments. We have a daily job that connects to Websphere MQ via JMS and retrieves a set of records. This job uses the out-of-the-box JMS ItemReader. We implement our own ItemProcessor, but it doesn't do anything special other than logging. There are no filters or processing that should affect incoming records. The problem is that out of the

Can create Websphere Queue Manager but not connect

匿名 (未验证) 提交于 2019-12-03 08:44:33
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to write a .Net connector to WebSphere MQ queues so I've installed a trial version of IBM WebSphere MQ on my Windows 7 machine. I initially setup some dummy queues in MQ Explorer to play with the setup process and I was able to connect to those queue managers and create queues. I deleted those dummy queues and followed the first set of instructions from Lesson 1.1 from IBM here where I created some queues from the command line I failed to run Lesson 1.2 because of security issues, and I now cannot connect to any queue managers in MQ

java websphere MQ

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My aim is to put n number of messages in a for loop to a WebSphere MQ queue using WebSphere MQ java programming. My java program will run as a standalone program. If any exception in between , I need to rollback all the messages. If no exception then I should commit all the messages . The outside world should not see my messages in the queue until I complete fully. How do I achieve this? Updated with sample code as per reply from T.Rob: Please check if sample code is fine ? Does setting MQGMO_SYNCPOINT is only related to my program's

My C with MQ receive a message return code 2037

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I run the C program, which connect to MQ and try to get a message from it. I always get a message: MQGET ended with reason code 2037 which means that MQ is not opened, but MQOPEN CC=0 RC=0 MQ error log is empty. this is the program #include <stdio.h> #include <stdlib.h> #include <string.h> #include <cmqc.h> /* includes for MQI*/ #include <cmqxc.h> int main(int argc, char **argv) { MQCNO Connect_options = {MQCNO_DEFAULT};/MQNONNX opt*/ MQCD ClientConn = {MQCD_CLIENT_CONN_DEFAULT};/*client channel*/ MQHCONN Hcon; /* connection handle */ MQHOBJ

How to use JMS Properties on IBM MQ JMS Interface?

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 is that an MQ JMS limitation? 回答1: If you have the

MQ Error on SSL enabled

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We have enabled SSL on 1. MQ version '7.1.0.7' 2. OS->'Linux 2.6.32-642.11.1.el6.x86_64' 3. two months back [aug-2016] and its working fine with SSL enabled and disabled mode Java Client uses 1. jdk1.7.0_21 2. 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) at com.ibm.mq

Using JMS to connect to IBM MQ

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to use JMS to connect to IBM MQ. How do i specify the queuemanager, the channel and other properties ? 回答1: Using JNDI for connectionFactory/destinations lookups, provide the InitialContext with the following properties: java.naming.provider.url=<ip>:<port, default is 1414>/<channel name, default channel is SYSTEM.DEF.SVRCONN> java.naming.factory.initial=com.ibm.mq.jms.context.WMQInitialContextFactory java.naming.security.authentication=none java.naming.security.credentials= java.naming.security.principal= using WAS (Websphere

Can&#039;t connect to IBM MQ Channel from .net core client

匿名 (未验证) 提交于 2019-12-03 01:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have configured ssl for queue manager name "QMA" and channel named "QMACLCHL". Just set certificate label and chipher name. For queue manager also set the key store path (default value). In that directory generated .kbd file and stashed password file. By commands like these: cd /var/mqm/qmgrs/QMA/ssl runmqakm -keydb -create -db key.kdb -pw ********* -stash runmqakm -cert -create -db key.kdb -label certqma -stashed -size 2048 -sigalg SHA512WithRSA -dn CN=QMA runmqakm -cert -extract -db key.kdb -label certqma -file qma.arm -stashed runmqakm