Posted: Wed Sep 03, 2003 12:03 pm Post subject: Put a message file into a queue and get the response back
Novice
Joined: 17 Jun 2002 Posts: 10
Hi,
I have a multi-threaded java application that uses MQSeries. The Java application reads messages from REQUEST_QUEUE and sends responses to RESPONSE_QUEUE. Both the queues are on same queue manager on a Unix server.
I will need to create a client process to run from my NT desktop. I should be able to put the message (xml file) into the REQUEST_QUEUE, and be able to read the response from the RESPONSE_QUEUE.
I should be able to run as many processes as I could from my desktop.
I tried to use amqsget & amqsput but I am struck with the following limitations.
1. I am not able to connect to a queue manager on a remote Unix server with amqsget & amqsget
2. How would I co-relate the request and response messages for amqsget and amqsput.
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
amqsput and amqsget are just sample programs. They are not really meant to be used as applications as then can only handle a very small message and their communication is only to/from STDOUT/STDIN.
1. Use amqsputc and amqsgetc, the client versions.
2. Without changig the programs, you can't. But even if you changed them, you would have to devise some method of getting the 24 byte value (of the MessageID) out from amqsputc and then into amqsgetc.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum