|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Command Server |
« View previous topic :: View next topic » |
Author |
Message
|
vadivel |
Posted: Wed Mar 19, 2003 6:23 pm Post subject: MQ Command Server |
|
|
 Voyager
Joined: 05 Aug 2002 Posts: 79 Location: US
|
Hi,
I'm using MQ v5.2 in Solaris.
I'm using pcf commands to get the status of the channels, as part of the requirement. My application is part of a group other than mqm, so I have to get the connect privilege on Command server to execute the pcf commands.
Could anyone tell me what is the command to give authorization on connect to the command server.
Thanks & Regards
Vels |
|
Back to top |
|
 |
mqonnet |
Posted: Thu Mar 20, 2003 6:04 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
Vels, there is nothing like getting authorization to a process, in your case command server.
Command server reads of SYSTEM.ADMIN.COMMAND.QUEUE and hence you need to assign appropriate authority to objects and users on this queue and the qm in question. To allow them to issue pcf commands on this qm.
Need to issue the following commands.
setmqaut -m $qmgr -t qmgr -g $grp +inq +connect +dsp
setmqaut -m $qmgr -t q -n SYSTEM.ADMIN.COMMAND.QUEUE -g $grp +inq +put
These are the bare minimum authorization options that you need to use. You need to add or delete them according to your need.
Search for setmqaut in the manual and you would get all the info on this.
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
Back to top |
|
 |
vadivel |
Posted: Thu Mar 20, 2003 10:19 pm Post subject: |
|
|
 Voyager
Joined: 05 Aug 2002 Posts: 79 Location: US
|
Hi,
I've given the dsp, put, inq, get, browse rights on the SYSTEM.ADMIN.COMMAND.QUEUE to the group from which I'm running the java program.
Basically this what is in the code.
public boolean openConnection(String qManager)
{
this.qManager = qManager;
try
{
qMgr = new MQQueueManager(qManager);
this.agent = new PCFMessageAgent();
this.agent.connect(qMgr);
}
catch(MQException exp)
{
return false;
}
}
I get a 2035 reason code, which basically means not authorized!!!!.
If I comment the agent.connect() method, it works.
Any ideas!!!!
Regards
Vels |
|
Back to top |
|
 |
mgrabinski |
Posted: Thu Mar 20, 2003 10:48 pm Post subject: |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
Are you sure your user is allowed to connect to the queue manager? Check it! _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
mqonnet |
Posted: Fri Mar 21, 2003 7:02 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
Not sure what you meant by "If I comment the agent.connect() method, it works". What does "works" here mean. Does it mean you are now able to connect fine.
Try this...
Use the same userid that you run this java app to connect to the qmgr from outside using amqsputc or some other client app. If you are unable to connect, which means authorizations are still not appropriately set.
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
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
|
|
|
|