ibm-mq

when to use client connection channel in MQ?

送分小仙女□ 提交于 2019-12-07 04:51:32
问题 i kind of don't understand when to use the MQ client connection channel. From my understanding, when client trying to connect MQ server, it can be completed by defining the channel object with server connection channel value directly in application code. Therefore, if so, then why do we need to make use of such client connection channel? Please help explain to me in detail. Thanks very much 回答1: A Server Connection Channel is used by clients to connect to a queue manager. You don't really use

How to do jndi lookup of MQ connection factory defined in Websphere app Server from Spring

纵然是瞬间 提交于 2019-12-07 04:45:17
问题 I am trying to connect to a MQ connection factory defined in Websphere app Server 7.0. But I couldnt find a right connectionfactory interface for the MQ to define in Spring. However when I tried to hardcode the connection details in the spring config file, I am able to connect to the Queue Manager. What is the right interface/format to use in Spring beans to load the MQ connection factory defined in Websphere appl server? Working Code <bean id="mqConnectionFactory" class="com.ibm.mq.jms

Get channel table file from remote server

青春壹個敷衍的年華 提交于 2019-12-07 03:01:26
I'm trying to set ccdturl with the ccdt file which located in a remote server. I tried to set ccdt url using ftp but it does not work out. Does anyone know what is the correct way to set url for ccdt file in remote server? Thanks! I tried: String channelTablePath = "ftp://user@host:/path-to-ccdt-file"; Url url = new URL(channelTablePath ); connectionFactory.setCCDTURL(url); The error that I get is: Exception in thread "main" javax.jms.JMSException: JMSWMQ2020: Failed to connect to queue manager '*QQ' with connection mode 'Client' and supplied CCDT URL 'ftp://user@host:/path/ccdt.tab', see

Can create Websphere Queue Manager but not connect

百般思念 提交于 2019-12-07 02:51:56
问题 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

Missing artifact com.ibm:com.ibm.mqjms:jar: 5.3.07

◇◆丶佛笑我妖孽 提交于 2019-12-07 01:59:18
问题 I added com.ibm.mqjms maven dependency in my pom.xml: <dependency> <groupId>com.ibm</groupId> <artifactId>com.ibm.mqjms</artifactId> <version>5.3.07</version> </dependency> And it's giving me: The following artifacts could not be resolved: com.ibm:com.ibm.mqjms:jar:5.3.07, com.ibm:com.ibm.mq:jar:5.3.07, javax.naming:jndi:jar:1.2.1, javax.resource:connector:jar:1.0, javax.transaction:jta:jar:1.0.1B, javax.jms:jms:jar:1.1: Could not find artifact com.ibm:com.ibm.mqjms:jar:5.3.07 in central

NoClassDefFoundError (initialization failure) - Websphere and IBM MQ

痴心易碎 提交于 2019-12-06 19:25:19
问题 Im having a problem on a Spring based webapp that is being deployed to Websphere and interacts with IBM MQ. All is fine until I try some failure tests. While the webapp is up and running, I stop IBM MQ. I then invoke the webapp to send a JMS message out. The webapp hung at the call to JmsTemplate.convertAndSend and the following exception was found in the ffdc directory. Note the JmsTemplate was initialised using the JNDIObjectFactoryBean where it had got the MQ Connection Factory settings

WCF / WebService to act as Listener for MQ Message?

£可爱£侵袭症+ 提交于 2019-12-06 18:24:32
问题 Perhaps I am barking up the wrong tree - but I have a set of services (WebAPI and WCF) that use WebSphere MQ to interact with other systems. This works without issue - until I now need to find a way of listening for messages on one of the queues. Is this even possible, or do I need to go down the windows Service route? 回答1: Your problem can be broken down into two distinct elements: How to integrate MQ with a WCF-supported transport How to expose a WCF endpoint over this transport To address

Websphere MQ as a data source for Apache Spark Streaming

末鹿安然 提交于 2019-12-06 18:20:09
问题 I was digging into the possibilities for Websphere MQ as a data source for spark-streaming becuase it is needed in one of our use case. I got to know that MQTT is the protocol that supports the communication from MQ data structures but since I am a newbie to spark streaming I need some working examples for the same. Did anyone try to connect the MQ with spark streaming. Please devise the best way for doing so. 回答1: So, I am posting here the working code for CustomMQReceiver which connects the

Is there anyway to bridge between Azure Service Bus queue and a WebSphere queue?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 16:29:52
Is there anyway to bridge between Azure Service Bus queue and a WebSphere queue? Preferably "something" hosted in Azure, rather than an on-premise product There is a wiki page How to Send message from an on premise IBM MQ to Azure Service Bus queue which introduce for the needs. You can follow it to create a program, either as a continous web job on Azure if using Azure App Service, or running on Azure VM if you want. If the WebSphere MQ works on network within public IP, I think it's simple without any other additional work for network configuration. If not, you can try to create an Azure VPN

how to send msg to Websphere MQ with specific reply to MQ MGR using JMS

谁说我不能喝 提交于 2019-12-06 15:50:32
I need to build a java standalone application with ability to send messages to MQSeries specifying reply-to queue and reply-to MQMgr. I was able to use the code in SimpleP2P example to send a message, but unable to specify the reply-to queue and reply-to MQMgr public static void main(String[] args) { try { MQQueueConnectionFactory cf = new MQQueueConnectionFactory(); cf.setHostName("xyz.com"); cf.setPort(141600); cf.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP); cf.setQueueManager("QMG"); cf.setChannel("CHANNEL"); MQQueueSession session = (MQQueueSession) connection.createQueueSession(false,