|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java PCF replace deprecated authentification user password |
« View previous topic :: View next topic » |
Author |
Message
|
pcouas |
Posted: Thu Aug 29, 2019 11:38 pm Post subject: Java PCF replace deprecated authentification user password |
|
|
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 |
|
 |
fjb_saper |
Posted: Sat Aug 31, 2019 8:57 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
pcouas |
Posted: Sun Sep 01, 2019 10:53 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|