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 » General IBM MQ Support » MQ alias queue doesn't take PUT

Post new topic  Reply to topic
 MQ alias queue doesn't take PUT « View previous topic :: View next topic » 
Author Message
Stigoo
PostPosted: Wed Feb 06, 2013 1:39 pm    Post subject: MQ alias queue doesn't take PUT Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Wed Feb 06, 2013 2:21 pm    Post subject: Re: MQ alias queue doesn't take PUT Reply with quote

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
View user's profile Send private message
mvic
PostPosted: Wed Feb 06, 2013 6:34 pm    Post subject: Re: MQ alias queue doesn't take PUT Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Stigoo wrote:
Do you have any suggestion?

http://pic.dhe.ibm.com/infocenter/wmqv7/v7r5/topic/com.ibm.mq.doc/fm12490_.htm
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQ alias queue doesn't take PUT
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.