|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to create dynamic Queues? |
« View previous topic :: View next topic » |
Author |
Message
|
cnu |
Posted: Tue Jan 17, 2006 9:10 am Post subject: How to create dynamic Queues? |
|
|
Apprentice
Joined: 15 May 2004 Posts: 34
|
I will be getting 10 different messages,Depending on the value in my message, I need to send the message to one of the 10 queues. Can someone help me how can I setup the queues dynamically in spring context xml file . Thanks alot |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jan 17, 2006 9:15 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
So this a question about Spring configuration, not about how to create dynamic temporary queues in WebSphere MQ using Java.
You could create one queue definition in your Spring configuration for each queue, and then have your program decide which one to use based on the message you get.
You could create a simple list of properties in your Spring configuration, that held queue names, and then follow the documentation in the Using Java manual for how to build a QueueDestination dynamically.
Also, you don't say if you are using JMS or the WebSphere MQ API for Java.
It should be obvious that what information you need to put into the Spring configuration is different depending on which you are using.
Maybe you should ask your team lead for help with this? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
cnu |
Posted: Wed Jan 18, 2006 10:03 am Post subject: |
|
|
Apprentice
Joined: 15 May 2004 Posts: 34
|
If someone has some sample code for creating dynamic destination queues using spring framework please share it . Thanks alot. |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Jan 18, 2006 10:26 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
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
|
|
|
|