ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Put a message file into a queue and get the response back

Post new topic  Reply to topic
 Put a message file into a queue and get the response back « View previous topic :: View next topic » 
Author Message
rekapalli_ravi
PostPosted: Wed Sep 03, 2003 12:03 pm    Post subject: Put a message file into a queue and get the response back Reply with quote

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.

I appreciate any help in this direction.

Thanks
Ravi.
Back to top
View user's profile Send private message AIM Address
EddieA
PostPosted: Wed Sep 03, 2003 1:07 pm    Post subject: Reply with quote

Jedi

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Put a message file into a queue and get the response back
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.