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 » General IBM MQ Support » About auto-create objects using script

Post new topic  Reply to topic
 About auto-create objects using script « View previous topic :: View next topic » 
Author Message
kun.leeing
PostPosted: Tue May 18, 2010 2:15 am    Post subject: About auto-create objects using script Reply with quote

Disciple

Joined: 27 Sep 2008
Posts: 171

Hi, experts.

I want every my client has its own subscriber's queue.

As every client connect to mq server , it will use a certain subqueue with its own number.

So I create queues in advance with *.mqsc script.But every define queue must be written to the script file.

How can I run a script to create all of it?
The queue's name like
'SYSTEM.JMS.ND.SUBSCRIBER.1'
'SYSTEM.JMS.ND.SUBSCRIBER.2'
'SYSTEM.JMS.ND.SUBSCRIBER.3'
'SYSTEM.JMS.ND.SUBSCRIBER...'

I hoped I could use the script like 'for((i=1;i<100;i=i+1))'.
And Can I use PCF to create it?

Thanks.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue May 18, 2010 5:16 am    Post subject: Re: About auto-create objects using script Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

kun.leeing wrote:
I hoped I could use the script like 'for((i=1;i<100;i=i+1))'.


Well WMQ command script doesn't support that but a small bit of shell script could generate the commands for you which you could then run in. Or with a little additional ingenuity the script could run it for you.

kun.leeing wrote:

And Can I use PCF to create it?


Of course you can. Just write an application (or similar tool) to generate the PCF in the same way you'd generate the commands. PCF = runmqsc commands.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue May 18, 2010 3:22 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

Don't use "SYSTEM" has the high level qualifier on the queue name as this is reserved for internal use by MQ. Use a more meaninful name such as an abbreviation of the client application name.

If you are using sequential numbers, it is better to include leading zeroes, MYQUEUE.SUB.001, MYQUEUE.SUB.002 etc. Think about scalability, how many of these queues will ever be needed.
_________________
Glenn
Back to top
View user's profile Send private message
kun.leeing
PostPosted: Tue May 18, 2010 5:33 pm    Post subject: Reply with quote

Disciple

Joined: 27 Sep 2008
Posts: 171

Thanks, vitor.

I've decided to write an app using PCF for all of objects.

And thanks,gbaddeley. I'v taken your advice and changed the name of those queues.
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Tue May 18, 2010 8:13 pm    Post subject: Reply with quote

Grand High Poobah

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

Remember that for topics you will need to create an alias in the SYSTEM.JMS.ND.* in order to work right with V6 style pub/sub.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kun.leeing
PostPosted: Tue May 18, 2010 10:21 pm    Post subject: Reply with quote

Disciple

Joined: 27 Sep 2008
Posts: 171

Yes, thanks.
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 » General IBM MQ Support » About auto-create objects using script
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.