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 » JMS setJMSReplyTo

Post new topic  Reply to topic
 JMS setJMSReplyTo « View previous topic :: View next topic » 
Author Message
onome
PostPosted: Wed Mar 24, 2010 8:20 am    Post subject: JMS setJMSReplyTo Reply with quote

Newbie

Joined: 24 Mar 2010
Posts: 2

Hi there,

I need to retrieve response messages of a queue by first sending a request and waiting for the response. The recipient server expects the client request to set the replyToQueueManagerName/replyToQueueName properties in the request.

Now for security reasons I cannot connect to the replyToQueueManagerName/replyToQueueName indicated in the request.
but the recipient server can connect to it and place the response on there, they have an built in feature which then moves that message onto the actual queue i need to listen for the response.

Now using JMS how can i specify the replyToQueueManagerName/replyToQueueName properties without using the setJMSReplyTo which expects a Destination object.

Any ideas?

Thanks in advance.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 24, 2010 10:36 am    Post subject: Re: JMS setJMSReplyTo Reply with quote

Grand High Poobah

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

onome wrote:
Hi there,

I need to retrieve response messages of a queue by first sending a request and waiting for the response. The recipient server expects the client request to set the replyToQueueManagerName/replyToQueueName properties in the request.

Now for security reasons I cannot connect to the replyToQueueManagerName/replyToQueueName indicated in the request.
but the recipient server can connect to it and place the response on there, they have an built in feature which then moves that message onto the actual queue i need to listen for the response.

Now using JMS how can i specify the replyToQueueManagerName/replyToQueueName properties without using the setJMSReplyTo which expects a Destination object.

Any ideas?

Thanks in advance.

Sure. Try to use the product as it was intended an build a Destination from the QMGR and Queue information...
You can use the URL form if you'd like. You can leave the qmgr blank and let MQ fill in the qmgr you're connected to...

All information on how to do that should be in the using java manual (see link on top of the page).

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
onome
PostPosted: Thu Mar 25, 2010 1:20 am    Post subject: Reply with quote

Newbie

Joined: 24 Mar 2010
Posts: 2

Thanks for your response. My only concern with building the Destination from the MQGR and Queue information is that it will require the Webphere Administrator to setup the JMS QMGR in Websphere, which is not really required as we cant connect to the QMGR from our side. And i am assuming if they are not defined in Websohere my code will generate an error during the initiation of the Destination.

When you say I can define the Destination in url format, do you have a sample code for this.

Thanks in advance.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 25, 2010 7:27 am    Post subject: Reply with quote

Grand High Poobah

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

onome wrote:
Thanks for your response. My only concern with building the Destination from the MQGR and Queue information is that it will require the Webphere Administrator to setup the JMS QMGR in Websphere, which is not really required as we cant connect to the QMGR from our side. And i am assuming if they are not defined in Websohere my code will generate an error during the initiation of the Destination.

When you say I can define the Destination in url format, do you have a sample code for this.

Thanks in advance.

You sound really new to JMS and MQ. I suggest you look at the manuals and at a decent JMS tutorial (sun's?) It should teach you how to set up the qmgr and reply to queue in URI format.
All you need is a default route to the destination for it to be valid. No need to be connected to the REPLYTO qmgr...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS setJMSReplyTo
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.