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 » IBM MQ Java / JMS » MQPUT1 in Java

Post new topic  Reply to topic
 MQPUT1 in Java « View previous topic :: View next topic » 
Author Message
Rajadurai_p
PostPosted: Wed Apr 20, 2005 6:20 am    Post subject: MQPUT1 in Java Reply with quote

Newbie

Joined: 19 Nov 2003
Posts: 5

Hi,

We have a java application which polls a queue for transaction request messages residing in the local queue manager. Currently the application is designed to post the response messages to a fixed pair of remote queue manager & queue. Now the requirement is to retrieve the ReplyToQueue and Queue Manager name from the incoming message’s properties and post back the response dynamically. Java API for MQ supports this option.



I want to know the local MQ objects (remote queue definition??, Tx queue, channels etc) that need to be created for this purpose, assuming I have only the following details:

Remote Queue & Queue Manager names from input message
Remote server's IP Address & the listening port number at which it listens for MQ calls
Also, clustering the local & remote queue managers is not an option here.



Any guidance would be of great help.



Thanks

Rajadurai
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Apr 20, 2005 6:39 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I think there is some kind of administration task involved. The MQ Admin should create the channels and mq objects to setup the communication between the local and remote qmgrs.

You can also do a MQ Client PUT, by using MQEnvironment variable which is not the right thing to do when you have a full blown MQ installed.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rajadurai_p
PostPosted: Wed Apr 20, 2005 7:27 am    Post subject: Reply with quote

Newbie

Joined: 19 Nov 2003
Posts: 5

Hi,
Thanks.
We do not have the choice of using MQ Client. I guess we can not use Remote queue definition as it needs the names of remote queue & queue manager at the time of creation.

Any guidance on MQ objects creation for this purpose would be of great help.

Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Apr 20, 2005 12:15 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Read the intercommunications manual

You need a channel and a transmission queue to the target qmgr.

You need to have a default way defined to the target qmgr:

either xmiq name = <target qmgr>

or rq(<target qmgr>) rqmname(<target qmgr>) xmitq(<myxmitq>)

Enjoy
Back to top
View user's profile Send private message Send e-mail
beezlebub
PostPosted: Thu Apr 21, 2005 7:24 am    Post subject: Reply with quote

Newbie

Joined: 20 Apr 2005
Posts: 9

I don't know java but this may help. First, you need to have the channels and xmitqs in place for the queue managers that will receive the reply messages. Make the xmitq names match the queue manager names. You will have the reply queue name and the queue manager name from the incoming message. When you do the MQOPEN to send the reply, in the MQOD, specify the queue as the 'ObjectName' and the target queue manager as the 'ObjectQMgrName'. This will cause MQ to put the message on the xmitq of the same name as the 'ObjectQMgrName'. The message gets delivered and the receiving queue manager puts the message on the named queue. No qremote definitions are needed. I hope this helps, I don't have a sample as I was just invloved in helping a developer figure out what his inherited code was doing.
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 » IBM MQ Java / JMS » MQPUT1 in Java
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.