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 » Programmatically creating a Queuemanager and queue

Post new topic  Reply to topic
 Programmatically creating a Queuemanager and queue « View previous topic :: View next topic » 
Author Message
santhosh_fischer
PostPosted: Tue Nov 30, 2004 10:10 pm    Post subject: Programmatically creating a Queuemanager and queue Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Wed Dec 01, 2004 6:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
csmith28
PostPosted: Wed Dec 01, 2004 7:48 am    Post subject: Reply with quote

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
View user's profile Send private message
santhosh_fischer
PostPosted: Wed Dec 01, 2004 7:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
csmith28
PostPosted: Thu Dec 02, 2004 8:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Programmatically creating a Queuemanager and queue
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.