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 » How to create dynamic Queues?

Post new topic  Reply to topic
 How to create dynamic Queues? « View previous topic :: View next topic » 
Author Message
cnu
PostPosted: Tue Jan 17, 2006 9:10 am    Post subject: How to create dynamic Queues? Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 17, 2006 9:15 am    Post subject: Reply with quote

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
View user's profile Send private message
cnu
PostPosted: Wed Jan 18, 2006 10:03 am    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Wed Jan 18, 2006 10:26 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

A google search on "spring framework dynamic queue" yielded the following:

http://forum.springframework.org/archive/index.php/t-10611.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » How to create dynamic Queues?
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.