mq


Connection pooling and Multithreading for TCP Socket?

孤街浪徒 提交于 2020-01-17 07:24:09
问题 I have a java application(say A) which communicate with an application(say B) via TCP Socket. My java application is multithreaded, can handle up to 100 threads. To communicate between A --> B we have 10 sockets. Challenges - Connection Pooling - need connection pooling mechanism to handle n(say 100) number of thread(of application A), communicating to application B via x(say 10) number of TCP Socket. Multithreading - How can two thread access same socket send the request one by one and get

How to improve MQ client create conncetion time?

天大地大妈咪最大 提交于 2020-01-07 02:40:28
问题 I have an app on Tomcat 7.05 that connects to a remote MQ manager, everything work fine, it just that creating a connection takes an insane amount of time ~ 13 seconds (if I put both java code and MQ server on one machine, it takes less then a second). How do I improve create connection time? My java code: import javax.jms.DeliveryMode; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.Queue; import javax.jms.QueueConnection; import javax.jms.QueueConnectionFactory;

Consuming messages from MQ and merging in Spring JMS

谁说胖子不能爱 提交于 2020-01-06 06:33:34
问题 I use spring + MQ + Websphere Application server. I want to consume messages from MQ asynchronously and combine the messages to have the List of messages to be easy to persist N number of Entities to Database in every single commit. (without stressing my target Oracle database with too many commits) I use The DefaultMessageListenerContainer and I made the onMessage method synchronized to add on the messages(Till batch size) and I create the Thread to wait for the condition to meet(time/size)

com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ0018: Failed to connect to queue manager 'xxx' with connection mode 'yyy' and host name 'zzz'

筅森魡賤 提交于 2020-01-04 05:46:11
问题 JMS app requires seven parameters to make successful SSL connection with MQ series given here, https://github.com/ibm-messaging/mq-tls-ssl-wizard/blob/master/com.ibm.mq.ssl-wizard/src/tlswizard/samples/SSLSampleJMS.java I am trying to interpret these parameters, Conname- the connection name of the server queue manager in the same format as the CONNAME parameter on the MQSC DEFINE CHANNEL command, but without the port specified. I guess this is host name Port - the connection port of the

how can I purge a MassTransit queue?

一笑奈何 提交于 2020-01-03 17:34:44
问题 I'd like to delete all the messages from a queue in my integration test SetUp routine, how can I accomplish that? No luck with googling/intellisense-bruteforce. If it matters -- I'm using RabbitMq as transport. 回答1: There's no way to "delete" from queues within MassTransit. For tests you can use temporary, random queue URIs via rabbitmq://localhost/*?temporary=true . Or you can just append ?temporary=true to the end of your existing queue URIs to have MT clean stuff up afterward. Note:

Difference between queue manager and message broker

十年热恋 提交于 2019-12-31 10:23:09
问题 What is the difference between a Websphere Message Broker and a Queue Manager. I guess the queue manager puts messages in the queue, takes messages out of the queue, moves messages to backout queues etc. So what is the job of the broker? Does it sit between the publisher and the Queue Manager or between the consumer and the Queue Manager? 回答1: Websphere MQ is a software which uses the AMQ(Asynchronous messaging protocol) . You can achieve asynchronous messaging between your applications via

Difference between queue manager and message broker

时间秒杀一切 提交于 2019-12-31 10:23:07
问题 What is the difference between a Websphere Message Broker and a Queue Manager. I guess the queue manager puts messages in the queue, takes messages out of the queue, moves messages to backout queues etc. So what is the job of the broker? Does it sit between the publisher and the Queue Manager or between the consumer and the Queue Manager? 回答1: Websphere MQ is a software which uses the AMQ(Asynchronous messaging protocol) . You can achieve asynchronous messaging between your applications via

Can Message driven beans (MDB) listen on “external” MQ?

萝らか妹 提交于 2019-12-25 03:03:04
问题 I am trying to understand concepts related to MDB, MQ, JMS. I did research on SO before asking this question. Is this possible scenario: MDB deployed on Application Server, say on JBOSS (on physical Server-A). MQ (say ApacheMQ) on a difference physical server-B. So can the MDB deployed in physical server-A get messages from physical server-B? If this is possible, then does MDB use JMS API's? I have heard Jboss has MQ, which i presume MQ withing Jboss application server; however i want MDB in

IBM MQ How read one by one message, not all available in a queue manager at once?

旧城冷巷雨未停 提交于 2019-12-24 19:41:39
问题 Now, my app receives all available messages in a Queue manager. I collect them locally and process one by one. Could do I configure it to receive one message, do some work (it can take some time), delete the received message, repeat? Is this behavior possible with IBM MQ? The code was updated function listenToMQ() { const qMgr = inbound.queueManagerName; const qName = inbound.queueName; const connName = inbound.host; const cno = new mq.MQCNO(); const sco = new mq.MQSCO(); const csp = new mq

Connecting to an MQ with Jmeter

对着背影说爱祢 提交于 2019-12-24 07:16:40
问题 I've been assigned the task of using Apache Jmeter to connect to an MQ. Unfortunately, I'm not the admin of the MQ, and all my attempts to get more information about it have gotten me nowhere. What I have now is a queue name (call it q), a queue manager (its name, anyway; call it v), a host (w), a port (x), a channel (y), a user (z), and a test message I'm supposed to send across. The object of the game is straightforward: send the test message from Apache Jmeter to the MQ (after which I'll

工具导航Map