Author |
Message
|
santhosh_fischer |
Posted: Tue Nov 30, 2004 10:10 pm Post subject: Programmatically creating a Queuemanager and queue |
|
|
Novice
Joined: 05 Aug 2004 Posts: 13
|
folks...
i could not find any details about creating a queue on the provider through a java program. If any one can suggest a way to do that i will be grateful.
right now i have one option to go to the command prompt of that provider machine and use crtmqm option. but i think its only possible to do locally.
can we do it from a remote machine?? if so how can we??
or is there a function like createqueue (which only gets a connection to the queue) to actually create a queue/queue manager in the provider.
please give ur suggestions..its urgent
Thanking u in advance
Santhosh |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Dec 01, 2004 6:19 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
WMQ doesn't supply an API to create a qmgr. You have to use the crtmqm command. However, once you have it created, you can do just about any administrative task you want by using SupportPac MS0B. This is the Java PCF SupportPac. If you do a search on MS0B on this site, you'll get a large number of hits. |
|
Back to top |
|
 |
csmith28 |
Posted: Wed Dec 01, 2004 7:48 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
I have encountered this before.
At times when a programer using JAVA runs into problems they will get JAVA Exception out put that says something like:
Quote: |
failed to create MQQueueManager for 'ServerName.domain.name.com:MQMGRNAME' at.....
|
This is a bit missleading.
The Client Java Application isn't really trying to "Create" an MQManager, it is just trying to create an awareness of or a connection with an existing MQManager. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
santhosh_fischer |
Posted: Wed Dec 01, 2004 7:36 pm Post subject: |
|
|
Novice
Joined: 05 Aug 2004 Posts: 13
|
but i want this too work in z/OS and OS/390 toooo....
i have read that PCF commands are not supported in this....
...
so for creatrng queue manager can be done only by running tha command or a .bat file on the provider system.
....
is there any way to run that from remote system???/ |
|
Back to top |
|
 |
csmith28 |
Posted: Thu Dec 02, 2004 8:45 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
santhosh_fischer wrote: |
but i want this too work in z/OS and OS/390 toooo....
i have read that PCF commands are not supported in this....
...
so for creatrng queue manager can be done only by running tha command or a .bat file on the provider system.
....
is there any way to run that from remote system???/ |
Is there an MQManager already defined on the z/OS and OS/390. If so you don't need to create a new one. All you need is to have a SVRCONN channel created for you to connect with and some Queue's defined on the existing MQManagers. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
|