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 » Alias target queue name

Post new topic  Reply to topic
 Alias target queue name « View previous topic :: View next topic » 
Author Message
welby
PostPosted: Sun Jan 30, 2011 7:36 pm    Post subject: Alias target queue name Reply with quote

Newbie

Joined: 30 Jan 2011
Posts: 2

Hi, I'm trying to define an Alias q using PCF, and MQ v7.0.1.3. When I specify the target q name I get a PCF error code 3015. Omitting the targq parameter creates the Alias q, but without a value for the targq name (naturally). Here is a code snippet. (The targq has a destination on a zLinux box).
int qType = 0;
if (type.equalsIgnoreCase("qlocal"))
{
qType = MQQT_LOCAL ;
}
else if (type.equalsIgnoreCase("qremote"))
{
qType = MQQT_REMOTE ;
}
else if (type.equalsIgnoreCase("qalias"))
{
qType = MQQT_ALIAS;
String qName = q.getProperty("targq");
// BaseQName
if (q.getProperty("targq") != null)
{
pList.add(new MQCFST(MQCA_BASE_Q_NAME, q.getProperty("targq")));
}
} .........
in debug mode, all values are correct. Any help appreciated.
Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Jan 30, 2011 9:45 pm    Post subject: Reply with quote

Grand High Poobah

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

Verify your property name. Targq switches to targetq in V7 mqsc AFAIK.

So please check your property name in V7 against V7 pcf jar files...

Have fun :innocent
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Mon Jan 31, 2011 5:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Just Target, I think, not TargetQ.

Although perhaps there's a doc bug. http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzac.doc/pc11200_.htm

Or maybe it's BaseObject in PCF as opposed to TARGET in MQSC.
Back to top
View user's profile Send private message
welby
PostPosted: Wed Feb 02, 2011 6:06 pm    Post subject: Reply with quote

Newbie

Joined: 30 Jan 2011
Posts: 2

Thanks guys for your input,
Applied the new PCF jar files. But still same result. The only option remaining was to shuffle the order of the parameter list;
1)Alias q name
2)Q Type
3)Remote q Name
in that order and hey presto! We were off and running again.
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 » IBM MQ Java / JMS » Alias target queue name
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.