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 » CMQCFC deprecated

Post new topic  Reply to topic
 CMQCFC deprecated « View previous topic :: View next topic » 
Author Message
ivanachukapawn
PostPosted: Thu Jan 30, 2014 7:21 am    Post subject: CMQCFC deprecated Reply with quote

Knight

Joined: 27 Oct 2003
Posts: 561

Getting a warning for deprecated interface - using NetBeans building an MQ PCF monitoring app.
The following statement:
Code:
request = new PCFMessage(CMQCFC.MQCMD_INQUIRE_CHANNEL_STATUS);
has the CMQCFC displayed with a line through it, and a warning is displayed for the compile:
Code:
java uses or overrides a deprecated API.

Google for this error yields:
Quote:
com.ibm.mq.headers.pcf.CMQCFC
use CMQCFC instead

I have the following in my classpath:
com.ibm.mq.headers.jar and com.ibm.mq.jmqi.jar

Not sure how to follow the advice = use CMQCFC instead
Back to top
View user's profile Send private message
ivanachukapawn
PostPosted: Thu Jan 30, 2014 7:40 am    Post subject: Reply with quote

Knight

Joined: 27 Oct 2003
Posts: 561

Very sorry to have bothered you. I replaced
Code:
CMQCFC.MQCMD_INQUIRE_CHANNEL_STATUS

with
Code:
MQConstants.MQCMD_INQUIRE_CHANNEL_STATUS


end of problem.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Jan 30, 2014 10:13 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Thanks for adding the solution. I am sure that act of kindness will be appreciated by some poor soul in the future.


_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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 » CMQCFC deprecated
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.