|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
C# accessQueue() on topic returned error code 2035 |
« View previous topic :: View next topic » |
Author |
Message
|
MrMQ9 |
Posted: Mon Feb 09, 2009 6:22 pm Post subject: C# accessQueue() on topic returned error code 2035 |
|
|
Newbie
Joined: 19 Dec 2008 Posts: 7
|
Hi,
I am writing a C# program to try to access a topic, but the accessQueue() method returned an error code 2035.
The topic I defined with setmqaut is shown below:
setmqaut -m MyQM -t topic -n TS.SUBSCRIBE -g mms -all +pub +sub
I want to add an option "+get" at the end of the commandline, but syntax error.
Then I changed this setmqaut commandline into :
setmqaut -m MyQM -t queue -n TS.SUBSCRIBE -g mms -all +get +put
It works in this way.
But this is not the topic any more, it is a queue only.
Can anyone explain?
I use MQ v7.0 on Windows 2003.
Thanks |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Feb 10, 2009 12:07 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9471 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
I want to add an option "+get" at the end of the commandline, but syntax error. |
And when you looked at the WMQ System Admin Guide for setmqaut, Table 25, is Get allowed for Topic objects? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
MrMQ9 |
Posted: Tue Feb 10, 2009 5:54 pm Post subject: |
|
|
Newbie
Joined: 19 Dec 2008 Posts: 7
|
bruce2359 wrote: |
Quote: |
I want to add an option "+get" at the end of the commandline, but syntax error. |
And when you looked at the WMQ System Admin Guide for setmqaut, Table 25, is Get allowed for Topic objects? |
It doesn't allow, that s why I feel a bit confused about how to use accessQueue() C# method to open a queue defined like this with setmqaut:
setmqaut -m MyQmgr -t topic -n ST.SUBSCRIBE -g mms -all +pub +sub
I use WMQ 7.0 for Windows 2003.
The way I used seems completely wrong.
Now I have changed it to
setmqaut -m MyQmgr -t queue -n ST.SUBSCRIBE -g mms -all +get +put, so to make the accessQueue() workable on the ST.SUBSCRIBE queue. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Feb 10, 2009 7:12 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Read again the pub /sub manual and how to use "queues" to access topics.
I don't believe you understood what was meant.
Let us know what you have tried after rereading the manual.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
MrMQ9 |
Posted: Wed Feb 11, 2009 5:07 pm Post subject: |
|
|
Newbie
Joined: 19 Dec 2008 Posts: 7
|
fjb_saper wrote: |
Read again the pub /sub manual and how to use "queues" to access topics.
I don't believe you understood what was meant.
Let us know what you have tried after rereading the manual.
Enjoy  |
Just read it through.
It cleared me up with the following description at page 61:
Code: |
Grant access to USER1 to subscribe to topic "Price/Fruit" by granting the user access to the FRUIT profile. Do this, using the following setmqaut command: setmqaut –t topic –n FRUIT –p USER1 +sub
|
So my original setmqaut -t topic is wrong. The "TD.SUBSCRIBE" is really should be a topic rather than a queue.
Thanks |
|
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
|
|
|
|