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 » Topic Publish Error - reason '2035' ('MQRC_NOT_AUTHORIZED')

Post new topic  Reply to topic Goto page Previous  1, 2
 Topic Publish Error - reason '2035' ('MQRC_NOT_AUTHORIZED') « View previous topic :: View next topic » 
Author Message
Vitor
PostPosted: Tue Sep 25, 2012 5:31 am    Post subject: Reply with quote

Grand High Poobah

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

shashir wrote:
WAS 6.1 uses WebSphere MQ Resource Adapter 6.0.2.1, so its WMQ client 6.x version

WAS 8.0.0.4 uses WebSphere MQ Resource Adapter 7.0.1.7, so its WMQ client 7.x version

WAS 6.1 & WAS 8.0.0.4 uses different WMQ clients.


So given that the WMQ pub/sub was redesigned and reimplemented to WMQv7, it's hardly surprising that the clients behave differently is it?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shashir
PostPosted: Tue Sep 25, 2012 5:40 am    Post subject: Reply with quote

Novice

Joined: 24 Sep 2012
Posts: 13

Yes, I think they are two different implementations and support jms spec at different levels.

I brought that WAS 6.1 into picture, to isolate the problem i.e. is it a MQ Server side problem or a WAS side problem.

Irrespective of whether its WAS 6.1, WAS 8.0.0.4 - the configuration on MQ Server is same.

Hope my interpretation is not confusing.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 25, 2012 5:59 am    Post subject: Reply with quote

Grand High Poobah

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

shashir wrote:
Yes, I think they are two different implementations and support jms spec at different levels.


I think the JMS spec, and WMQ's support of it, hasn't changed.

I know they are 2 different implementations of the client because you told me that. So why do you only think that?

shashir wrote:
I brought that WAS 6.1 into picture, to isolate the problem i.e. is it a MQ Server side problem or a WAS side problem.


And as a result, we've identified that it's potentially both. The v7 queue manager implements pub/sub in a way the v6 client does not expect (but is compatible with). The v6 and v7 clients mirror these differences.

shashir wrote:
Irrespective of whether its WAS 6.1, WAS 8.0.0.4 - the configuration on MQ Server is same.


But it will work differently with the 2 clients.

shashir wrote:
Hope my interpretation is not confusing.


In places, it's just plain wrong. But you've identified the issue even if you're trying to think your way out of it, round it and just in circles.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
nathanw
PostPosted: Tue Sep 25, 2012 6:01 am    Post subject: Reply with quote

Knight

Joined: 14 Jul 2004
Posts: 550

Something that has happened in the past to me is teh following

Code:
If WAS Version 6 is being used on the server by java applications to connect to WMQ then ensure that the WAS environment variable MQ_INSTALL_ROOT is changed in the WAS administration console by an authorised WAS admin userid.

MQ_INSTALL_ROOT should be changed from default of:

‘${WAS_INSTALL_ROOT}/lib/WMQ’

 where WAS_INSTALL_ROOT is

‘X:\X\IBM\WebSphere\AppServer’

 to

‘X:\X\IBM\WebSphere MQ’

and WAS then should be restarted twice (to enable WAS to clear a cache).


Just a thought
_________________
Who is General Failure and why is he reading my hard drive?

Artificial Intelligence stands no chance against Natural Stupidity.

Only the User Trace Speaks The Truth
Back to top
View user's profile Send private message MSN Messenger
shashir
PostPosted: Tue Sep 25, 2012 9:10 am    Post subject: Reply with quote

Novice

Joined: 24 Sep 2012
Posts: 13

Nathanw: Thank you for the details.

Coming back to the Topic object thing, Here is the reply from my Admins:

you do only configure a topic string in your configuration. MQ in v7 has TOPIC objects, but you probably don't specify that specifically. You specify a Stream to publish to with a topic string. The Stream essentially is the TOPIC object, if that makes any sense.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 25, 2012 6:52 pm    Post subject: Reply with quote

Grand High Poobah

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

shashir wrote:
Nathanw: Thank you for the details.

Coming back to the Topic object thing, Here is the reply from my Admins:

you do only configure a topic string in your configuration. MQ in v7 has TOPIC objects, but you probably don't specify that specifically. You specify a Stream to publish to with a topic string. The Stream essentially is the TOPIC object, if that makes any sense.

Yes and No. The topic object will be used to authorize the topic. To access the topic you only need the topic string...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
shashir
PostPosted: Wed Sep 26, 2012 9:58 am    Post subject: Reply with quote

Novice

Joined: 24 Sep 2012
Posts: 13

Here is one of the ways to get it working.

One of my colleagues suggested me to set the Provider Version attribute on the topic connection factory configuration in WAS 8 admin console to 6

I set the above mentioned provider version to 6 and My application is now able to publish messages to the MQ topic.

It throws that same exception if I use the default value ( unspecified ) or 7 on provider version attribute.


Any ideas why it works with value 6

Thank you everyone for sharing your knowledge and experience on this topic... its a good learning for me.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Sep 26, 2012 10:07 am    Post subject: Reply with quote

Grand High Poobah

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

shashir wrote:
Any ideas why it works with value 6


Because that uses the old, out of support and one no longer working v6 method. The 7 value uses the correct method.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shashir
PostPosted: Wed Sep 26, 2012 10:47 am    Post subject: Reply with quote

Novice

Joined: 24 Sep 2012
Posts: 13

Sure, If I want to use 7 in my WAS configuration.... where (MQ Server etc) and what changes need to be made? any pointers/links?
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Sep 26, 2012 11:07 am    Post subject: Reply with quote

Grand High Poobah

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

shashir wrote:
Sure, If I want to use 7 in my WAS configuration.... where (MQ Server etc) and what changes need to be made? any pointers/links?


Everything that's been said in this thread.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shashir
PostPosted: Wed Sep 26, 2012 1:20 pm    Post subject: Reply with quote

Novice

Joined: 24 Sep 2012
Posts: 13

Thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Java / JMS » Topic Publish Error - reason '2035' ('MQRC_NOT_AUTHORIZED')
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.