|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ alias queue doesn't take PUT |
« View previous topic :: View next topic » |
Author |
Message
|
Stigoo |
Posted: Wed Feb 06, 2013 1:39 pm Post subject: MQ alias queue doesn't take PUT |
|
|
Newbie
Joined: 06 Feb 2013 Posts: 1
|
Hi,
I thought I've successfully set up MQ v7.5 for aliasing (alias q+topic and the original q is subscribed). When I put messages in the alias q with MQ Explorer or Hermes it's working like a charm. But I have a java program which used to work with the original q (it's purpose just to put messages into the queue). Now I'm getting reason code 2045, MQRC_OPTION_NOT_VALID_FOR_TYPE. I've tried to moddify the java code from
Code: |
int openOptions = MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_OUTPUT; |
to
Code: |
int openOptions = MQC.MQOO_OUTPUT; |
Since I don't want to GET from the alias. But it won't help.
Do you have any suggestion?
Thanks. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Feb 06, 2013 2:21 pm Post subject: Re: MQ alias queue doesn't take PUT |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Stigoo wrote: |
Hi,
I thought I've successfully set up MQ v7.5 for aliasing (alias q+topic and the original q is subscribed). When I put messages in the alias q with MQ Explorer or Hermes it's working like a charm. But I have a java program which used to work with the original q (it's purpose just to put messages into the queue). Now I'm getting reason code 2045, MQRC_OPTION_NOT_VALID_FOR_TYPE. I've tried to moddify the java code from
Code: |
int openOptions = MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_OUTPUT; |
to
Code: |
int openOptions = MQC.MQOO_OUTPUT; |
Since I don't want to GET from the alias. But it won't help.
Do you have any suggestion?
Thanks. |
Posting one line of code isn't much help.
How about posting the line(s) of code that name the object which returns
the 2045 RC.
Also, use runmqsc to display the alias object definition. Also post the object definition that is target of the alias. _________________ 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 |
|
 |
mvic |
Posted: Wed Feb 06, 2013 6:34 pm Post subject: Re: MQ alias queue doesn't take PUT |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
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
|
|
|
|