Author |
Message
|
BDB |
Posted: Tue Jan 06, 2009 7:12 am Post subject: Need some expert advice |
|
|
Apprentice
Joined: 06 Jan 2009 Posts: 28
|
Hi Guys,
I am new here in this forum. I need some help on a few technical points which I am not sure about.
I have a linux server with multiple Weblogic instances with MDB configured which will listen to the output queue for response messages. The same linux server machine will also have a MQ Server installed on it. I am a bit confused about the way the response message will be routed to the requestor.
I intend to use Request/Reply pattern for my work. If a MQ request comes in from , say Weblogic Instance 3, Does the correlation ID correctly route the resposne message back to the requestor of WL Instance 3?? OR do I need to write a special code for this to happen?
Please let me know if there is anything I should take care about for the above kind of setup.
If this has already been discussed, please let me know the thread to refer. I tried searching for it but unfortunately could not find any.
-thanks and warm regards
BDB |
|
Back to top |
|
 |
BDB |
Posted: Tue Jan 06, 2009 7:35 am Post subject: |
|
|
Apprentice
Joined: 06 Jan 2009 Posts: 28
|
Hello anyone here to help?  |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 06, 2009 7:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
BDB wrote: |
Hello anyone here to help?  |
Yes, but there's no SLA on replies!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 06, 2009 7:52 am Post subject: Re: Need some expert advice |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
You wanted an expert; on MDB this is not me but in the absense of a Java person:
BDB wrote: |
Does the correlation ID correctly route the resposne message back to the requestor of WL Instance 3?? OR do I need to write a special code for this to happen? |
Your code (or the app server) should honour the ReplyTo queue and queue manager information supplied to route the code. The correl id is used to match up replies with requests at the receiving end.
BDB wrote: |
Please let me know if there is anything I should take care about for the above kind of setup. |
Clearly you'll need communication between all the parties involved, and a mechanism to deal with delayed responses which includes clearing them up.Message expiry is often used for this.
BDB wrote: |
If this has already been discussed, please let me know the thread to refer. I tried searching for it but unfortunately could not find any.
|
I'd start with the IBM Intercommunication & Java manuals.
A better Java person will be along soon who can probably provide more specfic advice. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
BDB |
Posted: Tue Jan 06, 2009 7:54 am Post subject: |
|
|
Apprentice
Joined: 06 Jan 2009 Posts: 28
|
Thank you Vitor.  |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 06, 2009 7:59 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
BDB wrote: |
Thank you Vitor.  |
You're welcome. Be sure to read the manuals carefully & put together some test code - Java/MDB/Weblogic combination is not my strong suit!
C/C++ in a clustered environment, ask me anything...!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
BDB |
Posted: Tue Jan 06, 2009 8:07 am Post subject: |
|
|
Apprentice
Joined: 06 Jan 2009 Posts: 28
|
Vitor wrote: |
BDB wrote: |
Thank you Vitor.  |
You're welcome. Be sure to read the manuals carefully & put together some test code - Java/MDB/Weblogic combination is not my strong suit!
C/C++ in a clustered environment, ask me anything...!  |
What do you guys do for C/C++ in this case? Same scenario can exists with it too right??? Do you have a something in middle to take care of it? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 06, 2009 8:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
BDB wrote: |
Same scenario can exists with it too right??? Do you have a something in middle to take care of it? |
Solved in the exactly same way - the replying app honours the ReplyTo information to route the message, and typically sets message expiry to clear up orphan replies. No middle step needed. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jan 06, 2009 8:32 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Typically, the JMS Requester will do a lookup in the JNDI to find out/create a Destination for the reply message, and then attach that as the JMSReplyTo destination. So in your case, this will resolve to a queue on the queue manager that the local App Server instance is using.
Then the JMS Server app will use that JMSReplyTo destination to deliver the message to that queue.
And the MDB will/can use the correlation ID on the message to match the reply with the request. |
|
Back to top |
|
 |
BDB |
Posted: Tue Jan 06, 2009 9:07 am Post subject: |
|
|
Apprentice
Joined: 06 Jan 2009 Posts: 28
|
Thank you guys. Appreciate it. Now you see why I called you guys experts  |
|
Back to top |
|
 |
ranganathan |
Posted: Wed Jan 07, 2009 9:40 am Post subject: |
|
|
 Centurion
Joined: 03 Jul 2008 Posts: 104
|
|
Back to top |
|
 |
|