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 » JMS can't connect to MQ queue manager

Post new topic  Reply to topic
 JMS can't connect to MQ queue manager « View previous topic :: View next topic » 
Author Message
algowu
PostPosted: Fri Feb 10, 2006 9:52 pm    Post subject: JMS can't connect to MQ queue manager Reply with quote

Newbie

Joined: 10 Feb 2006
Posts: 3

I got this weird problem and hope somebody can help me:

we developped a software that using JMS to communicate with IBM MQ5.3 server using mqcontext.jar (on solaris). It has been working fine until we changed channel MCAUSER attribute from blank to a valid unix user MCAUSER(devuser).

The error code we got is 2035. If we switch MCAUSER back to blank or mqm, our software works fine again. If we add "devuser" to mqm group, it also works.

So, is it true that MCAUSER must belongs to mqm group in order for MQ to work with JMS?

Another weird problem is that we can't access alias queue from our jms application, even we use MCAUSER(mqm) in channel definition.


Peter
Back to top
View user's profile Send private message
wschutz
PostPosted: Sat Feb 11, 2006 4:02 am    Post subject: Re: JMS can't connect to MQ queue manager Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

algowu wrote:
I got this weird problem and hope somebody can help me:

we developped a software that using JMS to communicate with IBM MQ5.3 server using mqcontext.jar (on solaris). It has been working fine until we changed channel MCAUSER attribute from blank to a valid unix user MCAUSER(devuser).

The error code we got is 2035. If we switch MCAUSER back to blank or mqm, our software works fine again. If we add "devuser" to mqm group, it also works.

So, is it true that MCAUSER must belongs to mqm group in order for MQ to work with JMS?

No, but devuser must be authorized via setmqaut to both connect to the qmgr and use the queue.
algowu wrote:
:
Another weird problem is that we can't access alias queue from our jms application, even we use MCAUSER(mqm) in channel definition.
Peter
What's the error?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
algowu
PostPosted: Sat Feb 11, 2006 9:48 pm    Post subject: Reply with quote

Newbie

Joined: 10 Feb 2006
Posts: 3

We granted all possible permissions for "devuser" to use qmgr and target queue, it still does not work. do we have to grant "devuser" permissiones to access all queues defined under the qmgr? we got the feeling that the error(2035) come from other queues which devuser does not have permission to access.


About the alias queue, we simly got messages says that the alias queue does not exists.
Back to top
View user's profile Send private message
vennela
PostPosted: Sat Feb 11, 2006 11:28 pm    Post subject: Re: JMS can't connect to MQ queue manager Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

wschutz wrote:
No, but devuser must be authorized via setmqaut to both connect to the qmgr and use the queue.

I am kind of nervous to disagree with wschutz, because he couldn't be wrong. But I think the user must be from mqm group.

Quote:
About the alias queue, we simly got messages says that the alias queue does not exists.

Check the case
If it is clustered queue, issure the right cluster displaying commands to verify that the queue is really showing up.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
algowu
PostPosted: Sun Feb 12, 2006 8:16 am    Post subject: Re: JMS can't connect to MQ queue manager Reply with quote

Newbie

Joined: 10 Feb 2006
Posts: 3

vennela wrote:
wschutz wrote:
No, but devuser must be authorized via setmqaut to both connect to the qmgr and use the queue.

I am kind of nervous to disagree with wschutz, because he couldn't be wrong. But I think the user must be from mqm group.

I got the same feeling, it seems that JMS (we are using mqcontext.jar from ibm) trying to find out entire list of queues served by the qmanager which is not possible if you are not part of mqm group.

Is there a document from ibm that confirm this?

Quote:
About the alias queue, we simly got messages says that the alias queue does not exists.

Check the case
If it is clustered queue, issure the right cluster displaying commands to verify that the queue is really showing up.
Back to top
View user's profile Send private message
wschutz
PostPosted: Sun Feb 12, 2006 9:31 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

You can see why you're getting 2035 by turning on authority events:
Code:
runmqsc QMGR
alter qmgr AUTHOREV(enabled)
and then look at the event message generated in SYSTEM.ADMIN.QMGR.EVENT.
(I've used ms0k "evmon" to look at these messages in the past, but it doesn't seem to work well with MQ v6, it might still work ok with v5.3)
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
wschutz
PostPosted: Sun Feb 12, 2006 9:33 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Quote:
I am kind of nervous to disagree with wschutz, because he couldn't be wrong. But I think the user must be from mqm group.
Why should that be? As far as MQ is concerned, its just another MQ client connection, isn't it?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
wschutz
PostPosted: Sun Feb 12, 2006 1:14 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Actually, use the evmon from supportpac MO01, it seems to work properly for authorization messages (whereas ms0k seems to be broke here).
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS can't connect to MQ queue manager
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.