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 » Java PCF replace deprecated authentification user password

Post new topic  Reply to topic
 Java PCF replace deprecated authentification user password « View previous topic :: View next topic » 
Author Message
pcouas
PostPosted: Thu Aug 29, 2019 11:38 pm    Post subject: Java PCF replace deprecated authentification user password Reply with quote

Voyager

Joined: 06 Sep 2011
Posts: 79

Hi,

I use for some Qmanagers authentification with user/password
My code is running ok, but it' seems deprecated
Which code replace it ?
Code:

    Hashtable props = new Hashtable();
            props.put(MQC.CHANNEL_PROPERTY, connexionChannelTemp);
            props.put(MQC.HOST_NAME_PROPERTY, hostname);
            props.put(MQC.PORT_PROPERTY, port);
            props.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);
            props.put(MQC.USER_ID_PROPERTY, user);
            props.put(MQC.PASSWORD_PROPERTY, password);
            MQQueueManager qqqueueManager = new MQQueueManager(qmanagerName, props);
            PCFMessageAgent pcfMessageAgent = new PCFMessageAgent(qqqueueManager);


Regards
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Aug 31, 2019 8:57 am    Post subject: Reply with quote

Grand High Poobah

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

You need to change the import for PCF classes including PCFMessageAgent to com.ibm.mq.headers.pcf.*
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
pcouas
PostPosted: Sun Sep 01, 2019 10:53 pm    Post subject: Reply with quote

Voyager

Joined: 06 Sep 2011
Posts: 79

Ok

I have change import RESOLVED
Code:

mport com.ibm.mq.MQQueueManager;
import com.ibm.mq.MQException;
import com.ibm.mq.constants.MQConstants;
import com.ibm.mq.pcf.PCFMessageAgent;
import static com.ibm.mq.constants.CMQC.*;


Regards
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 » Java PCF replace deprecated authentification user password
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.