|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JMS setJMSReplyTo |
« View previous topic :: View next topic » |
Author |
Message
|
onome |
Posted: Wed Mar 24, 2010 8:20 am Post subject: JMS setJMSReplyTo |
|
|
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 |
|
 |
fjb_saper |
Posted: Wed Mar 24, 2010 10:36 am Post subject: Re: JMS setJMSReplyTo |
|
|
 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 |
|
 |
onome |
Posted: Thu Mar 25, 2010 1:20 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Mar 25, 2010 7:27 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|